Skip to content

ci: drop registry-url so npm publish reaches the OIDC exchange - #3

Merged
firejune merged 1 commit into
mainfrom
fix/oidc-publish-auth
Aug 23, 2026
Merged

ci: drop registry-url so npm publish reaches the OIDC exchange#3
firejune merged 1 commit into
mainfrom
fix/oidc-publish-auth

Conversation

@firejune

Copy link
Copy Markdown
Owner

Same fix as firejune/headerless#13, where the first automated publish failed with npm error 404: setup-node's registry-url writes an .npmrc with an _authToken line and exports the placeholder NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX when none is provided, so npm presents that placeholder as a real token instead of attempting the trusted-publishing OIDC exchange, and the registry masks the auth rejection as E404. With no auth configured, npm falls through to OIDC. The default registry is npmjs anyway, so nothing else changes.

setup-node's registry-url writes an .npmrc with an _authToken line and
exports a placeholder NODE_AUTH_TOKEN when none is provided. npm then
presents that placeholder as a real token instead of attempting the
trusted-publishing OIDC exchange, and the registry masks the rejection
as E404 — proven live on the sibling headerless repository's first
automated publish. With no auth configured at all, npm falls through
to OIDC.
@firejune
firejune enabled auto-merge (squash) August 23, 2026 11:17
@firejune
firejune merged commit d7fd209 into main Aug 23, 2026
1 check passed
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