Skip to content

ci: migrate npm publish to trusted publishing (OIDC)#16

Merged
Dev-vlad merged 1 commit into
mainfrom
ci-npm-trusted-publishing
Jun 11, 2026
Merged

ci: migrate npm publish to trusted publishing (OIDC)#16
Dev-vlad merged 1 commit into
mainfrom
ci-npm-trusted-publishing

Conversation

@Dev-vlad

Copy link
Copy Markdown
Member

Summary

  • The v0.2.2 publish failed at npm publish with E404 — the NPM_TOKEN secret expired (npm granular tokens default to 30-day expiry; last publish was May 5). Trusted publishing is now configured on npmjs.com for this repo + publish.yml, removing the need for long-lived tokens.
  • Workflow changes: upgrade npm to >= 11.5.1 (Node 22 bundles 10.x, too old for OIDC), drop NODE_AUTH_TOKEN and --provenance (auth and provenance are automatic with trusted publishing), disable dependency caching in the release build per npm docs.
  • publishConfig.provenance removed from package.json for the same reason (access: public kept).

Test plan

  • Workflow YAML validated; unit tests pass (109/109)
  • Re-point v0.2.2 tag after merge — the publish workflow run on the tag is the real verification

🤖 Generated with Claude Code

The v0.2.2 publish failed with E404: the NPM_TOKEN secret had expired
(npm granular tokens default to 30-day expiry). Replace token auth with
npm trusted publishing, configured for this repo/workflow on npmjs.com:

- Upgrade npm in the workflow: OIDC auth requires npm >= 11.5.1, while
  Node 22 bundles npm 10.x.
- Drop NODE_AUTH_TOKEN and the --provenance flag; with trusted
  publishing, auth comes from the GitHub OIDC token and provenance is
  generated automatically.
- Drop publishConfig.provenance for the same reason.
- Disable dependency caching in the release build per npm's guidance
  (cache: npm removed, package-manager-cache: false).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Dev-vlad Dev-vlad merged commit 16a8efe into main Jun 11, 2026
2 checks passed
@Dev-vlad Dev-vlad deleted the ci-npm-trusted-publishing branch June 11, 2026 13:14
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