ci(release): migrate npm publish to OIDC provenance-based auth#23
Conversation
Replace NPM_TOKEN secret with GitHub OIDC identity for npm publishing. Add id-token: write permission and --provenance flag, upgrade Node to 22.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughUpdated the release workflow to upgrade Node.js from version 18 to 22, added OIDC id-token write permission, enhanced npm publish command with the --provenance flag, and removed explicit NPM_TOKEN environment variable configuration. Changes
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5c0ecf1913
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Remove
NPM_TOKENsecret dependency from the release workflow and migrate to OIDC-based npm publishing with provenance attestation.Details
id-token: writepermission for GitHub OIDC token generation--provenanceflag tonpm publishfor supply chain securityNODE_AUTH_TOKENenv var (no longer needed with OIDC)Reference: https://github.com/team-michael/notifly-react-native-sdk/blob/main/.github/workflows/release.yml
Related Issues
N/A
How to Validate
workflow_dispatchpublish-npmjob authenticates via OIDC (no NPM_TOKEN needed)Pre-Merge Checklist
Code Quality
bun run build)bun run typecheck)bun run lint)bun test)Documentation
Commit Standards
Platform Validation
Summary by CodeRabbit