release: publish npm via OIDC trusted publisher - #169
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the release workflow to publish through npm’s GitHub Actions OIDC trusted publisher instead of the EOTP-incompatible NPM_TOKEN, while preserving provenance and the existing release flow. Sequence diagram for OIDC-based npm release publishingsequenceDiagram
participant GitHubActions
participant NPM
participant PackageRegistry
GitHubActions->>NPM: npm view package version
alt version already published
NPM-->>GitHubActions: Existing version
GitHubActions-->>GitHubActions: Skip publish
else version not published
GitHubActions->>NPM: npm publish with NPM_CONFIG_PROVENANCE=true
NPM->>GitHubActions: Authenticate via OIDC trusted publisher
NPM->>PackageRegistry: Publish package and provenance
PackageRegistry-->>GitHubActions: Publish result
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. This changes npm publishing from a stored token to OIDC-based authorization, so a trust-policy or workflow mistake could block releases or allow an unintended identity to publish the package. Reverting restores the token-based path, but any package publication or exposed authorization that occurred before the revert would not be undone.
Summary
Testing
Summary by Sourcery
Switch npm releases to Trusted Publisher OIDC authentication to restore reliable package publishing.
Bug Fixes:
Enhancements:
CI: