Skip to content

Use OIDC trusted publishing for npm publish#19

Merged
ronaldtse merged 1 commit into
mainfrom
fix/release-oidc-trusted-publishing
May 11, 2026
Merged

Use OIDC trusted publishing for npm publish#19
ronaldtse merged 1 commit into
mainfrom
fix/release-oidc-trusted-publishing

Conversation

@ronaldtse
Copy link
Copy Markdown
Member

Remove registry-url from setup-node and NODE_AUTH_TOKEN from npm publish. With id-token: write and --provenance, the OIDC token handles auth directly — setting NODE_AUTH_TOKEN or creating .npmrc via registry-url overrides and kills the OIDC flow.

Remove registry-url from setup-node (avoids .npmrc with token
placeholder) and remove NODE_AUTH_TOKEN env var (overrides OIDC
token from id-token: write). Let --provenance handle auth.
@ronaldtse ronaldtse merged commit ee53f48 into main May 11, 2026
4 checks passed
@ronaldtse ronaldtse deleted the fix/release-oidc-trusted-publishing branch May 11, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant