Skip to content

ci: drop setup-node registry-url for OIDC publishing - #28

Merged
jinzcdev merged 4 commits into
mainfrom
fix/npm-trusted-publishing-oidc
Nov 5, 2026
Merged

jinzcdev merged 4 commits into
mainfrom
fix/npm-trusted-publishing-oidc

Conversation

@jinzcdev

@jinzcdev jinzcdev commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove registry-url from actions/setup-node in the publish workflow

Why

actions/setup-node@v4 exports a placeholder NODE_AUTH_TOKEN (XXXXX-XXXXX-XXXXX-XXXXX) whenever registry-url is set. npm sees that token, skips the OIDC trusted-publishing exchange, and the publish fails with E404/ENEEDAUTH.

Without registry-url npm defaults to https://registry.npmjs.org/ and authenticates via GitHub OIDC using the configured Trusted Publisher. Verified by publishing v1.5.0 successfully from this branch (provenance included).

🤖 Generated with Claude Code

jinzcdev and others added 4 commits November 5, 2026 15:48
actions/setup-node@v4 exports a placeholder NODE_AUTH_TOKEN when
registry-url is set, which makes npm skip the OIDC exchange and fail
with E404. Without registry-url npm defaults to the public registry and
authenticates through the trusted publisher.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
@jinzcdev
jinzcdev merged commit 54b33ba into main Nov 5, 2026
1 check passed
@jinzcdev
jinzcdev deleted the fix/npm-trusted-publishing-oidc branch November 5, 2026 08:10
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