Skip to content

ci: public npm publish via NPM_TOKEN (n8n-public pattern) - #9

Closed
vigubikReply wants to merge 1 commit into
mainfrom
dev/public-publish-token
Closed

ci: public npm publish via NPM_TOKEN (n8n-public pattern)#9
vigubikReply wants to merge 1 commit into
mainfrom
dev/public-publish-token

Conversation

@vigubikReply

Copy link
Copy Markdown
Contributor

Switches the public-npm release from OIDC trusted publishing to a scoped automation token, matching reply-team/n8n-public.

Why: OIDC was fully working on our side (id-token fetched with the right audience, exchange POSTed), but npmjs rejected the exchange with OIDC token exchange error - package not found — the trusted-publisher config on the reply-cli package (owned by reply-io) isn't matching our claims. That's an npmjs-side config issue we can't resolve from CI, so per decision we use token auth.

Change: npm publish now runs with NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} (setup-node's registry-url .npmrc uses it). Provenance and the npm-public approval gate are kept.

Required before dispatch: add an environment secret NPM_TOKEN on the npm-public environment — a token that can publish reply-cli (see PR discussion / release runbook).

Ref: REPLY-51236

OIDC trusted publishing kept failing at the token exchange (npmjs

'package not found' for reply-cli). Switch to a scoped automation token

via NODE_AUTH_TOKEN, matching reply-team/n8n-public. Approval gate kept.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vigubikReply

Copy link
Copy Markdown
Contributor Author

OIDC trusted publishing works after fixing the npmjs Trusted Publisher repo-name typo (repy-cli -> reply-cli). reply-cli@0.3.0 published via OIDC with provenance. Keeping the tokenless OIDC path; closing this token fallback.

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