Skip to content

Commit

Permalink
fix: Add NPM login step.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zurcusa committed Sep 24, 2024
1 parent 08ad650 commit c8ec4d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"
node-version: '20'

- name: Login to NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish

0 comments on commit c8ec4d8

Please sign in to comment.