Skip to content

ci(publish): remove registry-url from setup-node to fix OIDC auth - #1088

Merged
lane711 merged 5 commits into
mainfrom
lane711/sonicjs-release-engineer-v3
Sep 8, 2026
Merged

lane711 merged 5 commits into
mainfrom
lane711/sonicjs-release-engineer-v3

Conversation

@lane711

@lane711 lane711 commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

setup-node with registry-url injects NODE_AUTH_TOKEN into .npmrc. When no token is provided (OIDC-only flow), npm sends unauthenticated requests and gets 404 on PUT.

Removing registry-url lets npm discover the OIDC token directly via --provenance and the trusted publisher connection.

🤖 Generated with Claude Code

lane711 and others added 5 commits September 8, 2026 16:47
- Changelog: add v3.0.0-beta.28 entry (2FA, GraphQL, fixes)
- Authentication: add Two-Factor Authentication (TOTP) section
- Plugins: add Two-Factor Auth and GraphQL plugin entries
- Plugin registry: regenerate from manifests (defaultActive fix)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…a tag step

Remove NPM_TOKEN secret dependency — OIDC (id-token: write + npm trusted
publisher) handles auth. Add `environment: npm` to gate workflow on the
npm trusted publisher connection. Add beta dist-tag step post-publish.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
npm install on macOS after version:beta stripped Linux optional packages
(esbuild Linux binary, emnapi), breaking npm ci. Full delete-and-reinstall
restores cross-platform entries per CLAUDE.md lock file trap guidance.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
setup-node with registry-url injects NODE_AUTH_TOKEN into .npmrc; when
the token is empty, npm sends unauthenticated requests and gets 404 on PUT.
Removing registry-url lets npm use the OIDC provenance token directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lane711
lane711 merged commit ea86432 into main Sep 8, 2026

This branch was successfully deployed

1 active deployment
internal — ba9c2d9a Deployed Sep 8, 2026 by lane711 via authorize #1579
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