Skip to content

feat: switch to OIDC trusted publishing for npm releases#42

Merged
ericanderson merged 1 commit intomainfrom
chore/oidc-npm-publishing
Mar 24, 2026
Merged

feat: switch to OIDC trusted publishing for npm releases#42
ericanderson merged 1 commit intomainfrom
chore/oidc-npm-publishing

Conversation

@ericanderson-bot
Copy link
Copy Markdown
Collaborator

Summary

  • Split release job out of ci.yml into dedicated release.yml workflow
  • Use npm OIDC trusted publishing (provenance) instead of NPM_TOKEN secret
  • Add id-token: write permission for GitHub Actions OIDC
  • Add "provenance": true to publishConfig

Setup required

  • Configure release.yml as trusted publisher on npmjs.com (Settings → Publishing access)
  • No NPM_TOKEN secret needed

Test plan

  • CI workflow still runs build/test on PRs and pushes
  • Release workflow triggers only on main/master pushes
  • Verify first release publishes successfully with provenance

@ericanderson ericanderson force-pushed the chore/oidc-npm-publishing branch from 7bbfb16 to 01ed578 Compare March 24, 2026 15:30
- Split release job into dedicated release.yml workflow
- Add id-token: write permission for npm provenance/OIDC
- Remove NPM_TOKEN dependency in favor of trusted publishing
- Add provenance: true to publishConfig
- Reduce fetch-depth in CI workflow (no longer needed for semantic-release)
@ericanderson ericanderson force-pushed the chore/oidc-npm-publishing branch from 01ed578 to cfd3b74 Compare March 24, 2026 15:31
@ericanderson ericanderson merged commit 857f069 into main Mar 24, 2026
2 checks passed
@ericanderson ericanderson deleted the chore/oidc-npm-publishing branch March 24, 2026 15:32
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants