Skip to content

Commit ddecde8

Browse files
lu-zhengdaclaude
andcommitted
Fix npm publish: remove auth token so OIDC trusted publishing works
actions/setup-node injects an empty NODE_AUTH_TOKEN into .npmrc, which prevents npm from falling back to the OIDC token exchange. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5022f71 commit ddecde8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ jobs:
2222
- run: npm run build
2323
- run: npm run lint
2424
- run: npm run test:unit
25+
- run: npm config delete //registry.npmjs.org/:_authToken || true
2526
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)