Skip to content

Commit

Permalink
correct npm tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Feb 5, 2024
1 parent 3058a11 commit ec3d269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ jobs:
- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TAG: ${{ github.event.release.prerelease == true && 'next' || 'latest' }}
run: |
npm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
npm publish --tag next
npm publish --tag $NPM_TAG
- name: Push changes
run: git push
Expand Down

0 comments on commit ec3d269

Please sign in to comment.