Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek authored Jun 13, 2023
1 parent 9171cee commit 977d5e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ jobs:
with:
node-version: latest
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm test
- name: Get latest tag and update version in package.json file
run: npm version $(git tag | sort -r --version-sort | head -n1 | cut -c2-) -no-git-tag-version -f
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 977d5e9

Please sign in to comment.