Skip to content

Commit

Permalink
publish only on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Jan 21, 2024
1 parent 6ed51f6 commit 364f5c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
access: public
check-version: true
if: startsWith(github.ref, 'refs/tags/')

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
access: public
check-version: true
if: startsWith(github.ref, 'refs/tags/')

0 comments on commit 364f5c4

Please sign in to comment.