Skip to content

Commit

Permalink
Update npm auth env
Browse files Browse the repository at this point in the history
Use the env var `NODE_AUTH_TOKEN` as `actions/setup-node` will auto-magically read this env var in the created `.npmrc` file it creates.

Ref: https://github.com/actions/setup-node/blob/d1b197b965eb46e1a1878caad41c4ab3efae133f/src/authutil.ts#L48
  • Loading branch information
feelepxyz authored Dec 8, 2022
1 parent d795db4 commit 32c3c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:
- run: make build
- run: npm publish --provenance --access public
env:
NPM_TOKEN: ${{ secrets.NPM_WEBAUTHN_JSON_PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_WEBAUTHN_JSON_PUBLISH_TOKEN }}

0 comments on commit 32c3c1d

Please sign in to comment.