Skip to content

CI: publish to npm via Trusted Publishing (OIDC) - #61

Merged
erikhofer merged 1 commit into
masterfrom
ci/npm-trusted-publishing
Sep 2, 2026
Merged

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

Conversation

@erikhofer

Copy link
Copy Markdown
Owner

The npm_token secret is expired — npm publish failed with E404 PUT https://registry.npmjs.org/liquid-loading on both release attempts. Trusted Publishing is now enabled on npmjs.com, so the token is replaced by OIDC.

Changes:

  • permissions: id-token: write — required for GitHub Actions to mint the OIDC token
  • npm install -g npm@latest — trusted publishing needs npm >= 11.5.1
  • removed NODE_AUTH_TOKEN / secrets.npm_token
  • provenance attestations are now published automatically, no --provenance flag needed

The workflow file name stays npm-publish.yml: the trusted publisher on npmjs.com is matched against repository + workflow file name, so renaming it would break publishing.

🤖 Generated with Claude Code

Replaces the npm_token secret with OIDC authentication:
- adds the required id-token: write permission
- upgrades npm, since trusted publishing needs npm >= 11.5.1
- drops NODE_AUTH_TOKEN; provenance is now attached automatically

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@erikhofer
erikhofer merged commit 8228569 into master Sep 2, 2026
4 checks passed
@erikhofer
erikhofer deleted the ci/npm-trusted-publishing branch September 2, 2026 13:49
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