Skip to content

ci: publish to npm with trusted publishing (OIDC) - #178

Merged
chyzwar merged 1 commit into
masterfrom
ci/npm-trusted-publishing
Oct 17, 2026
Merged

chyzwar merged 1 commit into
masterfrom
ci/npm-trusted-publishing

Conversation

@chyzwar

@chyzwar chyzwar commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Switch npm publishing from the NPM_TOKEN secret to npm trusted publishing (OIDC).

  • publish job gets permissions: { contents: write, id-token: write } (contents for lerna tags/releases, id-token for the npm OIDC exchange)
  • registry-url and NODE_AUTH_TOKEN removed; nothing reads the token anymore
  • Provenance attestations are generated automatically (public repo + public packages)

Trusted publisher on npmjs.com: chyzwar/common, workflow publish.yaml, no environment. After merge the NPM_TOKEN repo secret is deleted.

🤖 Generated with Claude Code

Drop NPM_TOKEN and registry-url, grant id-token: write to the publish job. Node 24.4.1 pin bumped to 24 (bundled npm 11.4.2 predates OIDC support).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chyzwar
chyzwar merged commit 8c04c2c into master Oct 17, 2026
1 check passed
@chyzwar
chyzwar deleted the ci/npm-trusted-publishing branch October 17, 2026 13:27
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