Skip to content

ci: fix public npm publish to use OIDC trusted publishing - #6

Merged
vigubikReply merged 1 commit into
mainfrom
dev/fix-public-publish-oidc
Jul 23, 2026
Merged

ci: fix public npm publish to use OIDC trusted publishing#6
vigubikReply merged 1 commit into
mainfrom
dev/fix-public-publish-oidc

Conversation

@vigubikReply

Copy link
Copy Markdown
Contributor

The first publish-public run failed at npm publish with E404 PUT /reply-cli … you do not have permission.

Root cause: actions/setup-node with registry-url: writes an .npmrc line //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}. We publish tokenlessly via OIDC trusted publishing, so NODE_AUTH_TOKEN is empty — npm used that empty token instead of OIDC (no OIDC attempt in the logs) and the registry returned 404. Provenance still signed because that's a separate OIDC path.

Fix: drop registry-url (default registry is npmjs.org anyway once publishConfig is removed), so no token .npmrc shadows OIDC. Also echo npm --version to confirm >= 11.5.1 at runtime.

Nothing was published, so v0.3.0 is still free to retry after this merges.

Ref: REPLY-51236

Drop setup-node registry-url: its empty _authToken .npmrc shadowed OIDC,

causing a 404 on publish. Default registry (npmjs.org) + id-token now use OIDC.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vigubikReply
vigubikReply merged commit 4a78dd4 into main Jul 23, 2026
6 checks passed
@vigubikReply
vigubikReply deleted the dev/fix-public-publish-oidc branch July 23, 2026 20:41
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