Skip to content

Commit d280c91

Browse files
committed
fix: add npm authentication token to publish workflow
- Add NODE_AUTH_TOKEN environment variable to npm publish step - Uses NPM_TOKEN secret from repository secrets - Fixes npm 404 authentication error during package publishing
1 parent 20d6d46 commit d280c91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ jobs:
2525
- run: npm ci
2626
- run: npm run build --if-present
2727
- run: npm test
28-
- run: npm publish
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)