Skip to content

Commit

Permalink
Publish to npm only tag changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
elisiondan committed Jul 27, 2023
1 parent d9b2483 commit b4ef33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
run: npm run build
- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/v')
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit b4ef33c

Please sign in to comment.