ci: switch publish workflow to npm trusted publishing#2680
Conversation
Use Node 24 (ships npm 11) and provenance via OIDC instead of NPM_TOKEN. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe publish-release workflow is updated to modernize its security and runtime configuration. The job now requests OIDC token permissions, the Node.js environment is upgraded to 24.x, and npm authentication switches from secrets-based tokens to provenance generation. ChangesRelease Workflow Security and Runtime
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Claude finished @ymc9's task —— View job Code Review Complete ✅Todo List
Review Feedback✅ Excellent ImplementationThe switch to npm trusted publishing is well-executed and follows best practices: Correct Changes Made:
🔒 Security Improvements
⚡ Performance & Operational Benefits
📋 Test Coverage AssessmentStrengths in Test Plan:
Suggestions for Improvement:
🔍 Minor ObservationsGood practices maintained:
Code quality:
📋 Recommended Next Steps
🎯 Overall AssessmentThis is a high-quality implementation of npm trusted publishing. The changes are minimal, focused, and follow security best practices. The approach eliminates secret management overhead while improving supply chain security through provenance attestation. Recommendation: Approved ✅ |
Summary
NPM_TOKEN, addsid-token: writeandNPM_CONFIG_PROVENANCE).npm install -g npm@lateststep.Test plan
@zenstackhq/*package (seescripts/setup-trusted-publishers.sh).mainand confirm publish + provenance succeeds withoutNPM_TOKEN.🤖 Generated with Claude Code
Summary by CodeRabbit