Skip to content

Commit

Permalink
Merge pull request #397 from ensdomains/fix/npm-tag
Browse files Browse the repository at this point in the history
correct npm tag
  • Loading branch information
TateB committed Feb 5, 2024
2 parents 3058a11 + ec3d269 commit 455a334
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 455a334

Please sign in to comment.