Skip to content

Conversation

@taras
Copy link
Member

@taras taras commented Jan 6, 2026

Motivation

When you specify registry-url: https://registry.npmjs.com in actions/setup-node, it automatically creates a .npmrc file with NODE_AUTH_TOKEN, which prevents npm from using OIDC authentication.

Approach

Remove the registry-url parameter from actions/setup-node. With OIDC configured (via id-token: write permission), npm will automatically authenticate using the OIDC token instead of looking for NODE_AUTH_TOKEN.

@taras taras merged commit 876d32a into main Jan 6, 2026
5 checks passed
@taras taras deleted the tm/remove-npm-registry branch January 6, 2026 00:58
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.

2 participants