Skip to content

Commit

Permalink
Try to update how the token is passed to npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCleric committed Sep 15, 2023
1 parent c20a2b7 commit 781eb9e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- run: npm i
- run: npm run test
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- run: npm config set registry https://registry.npmjs.org/
- run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}
- run: npm whoami
- run: npm publish

0 comments on commit 781eb9e

Please sign in to comment.