Greek language version (#4) #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: Publish package | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
if: | | |
!contains(github.event.head_commit.message, 'skip ci') && | |
!contains(github.event.head_commit.message, '0.') && | |
!contains(github.event.head_commit.message, '1.') && | |
!contains(github.event.head_commit.message, '2.') && | |
!contains(github.event.head_commit.message, '3.') && | |
!contains(github.event.head_commit.message, '4.') | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{secrets.GH_TOKEN}} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
git config user.name 'Simon Dagfinrud' | |
git config user.email '17279882+s-rd@users.noreply.github.com' | |
npm install | |
npm run build | |
git add . | |
git commit -m "Update versions.js" | |
npm version minor | |
npm publish | |
git push origin main | |
git push --tags origin main | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
GH_TOKEN: ${{secrets.GH_TOKEN}} | |
- name: Trigger update codeofdesign package in codeofdesign/website | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{secrets.GH_TOKEN}} | |
repository: codeofdesign/website | |
event-type: update-cofd |