Skip to content

Commit 4e27cc2

Browse files
committed
Fix npm publish by setting NODE_AUTH_TOKEN in release workflow
The actions/setup-node creates an .npmrc that uses ${NODE_AUTH_TOKEN}, but only NPM_TOKEN was being set. This caused the npm publish step to fail with "Access token expired or revoked" error.
1 parent 22aa3e5 commit 4e27cc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ jobs:
4242
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
4343
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
4444
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)