Skip to content

Commit

Permalink
Updated publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kolebjak committed Nov 13, 2021
1 parent f5d1103 commit ea28f71
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare repository
run: git checkout master
- run: git status
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- name: bump version
run: |
yarn version --no-git-tag-version --new-version ${{ github.event.release.tag_name }}
- name: push new version
run: |
git config --global user.name 'Jakub Kolebaba'
git config --global user.email 'jakub@kolebaba.cz'
git commit -am ${{ github.event.release.tag_name }}
git push
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit ea28f71

Please sign in to comment.