Skip to content

Commit

Permalink
👷 fix tags
Browse files Browse the repository at this point in the history
  • Loading branch information
o4kapuk committed Dec 5, 2023
1 parent c56e2ab commit c87ec91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 📦️ Publish package (github registry)
if: github.ref_name == 'master'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 📦️ Publish tagged package (github registry)
if: github.ref_name != 'master'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,9 +46,9 @@ jobs:
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: 📦️ Publish package (npmjs)
- name: 📦️ Publish tagged package (npmjs)
if: github.ref_name != 'master'
run: npm publish --tag github.ref_name
run: npm publish --tag ${{ github.ref_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}

0 comments on commit c87ec91

Please sign in to comment.