chore(ci): do not publish pre-releases as latest#314
Conversation
WalkthroughUpdated CI/CD pipeline in GitHub Actions workflow to validate git tag format, determine appropriate npm publish tag (alpha/beta/rc/latest), and enhanced release automation configuration with prerelease regex, changelog file, and draft mode settings. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 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)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #314 +/- ##
=======================================
Coverage 89.55% 89.55%
=======================================
Files 25 25
Lines 1475 1475
Branches 277 277
=======================================
Hits 1321 1321
Misses 93 93
Partials 61 61 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Updates the release workflow to ensure tagged pre-releases publish to npm under a non-latest dist-tag and create GitHub releases as drafts/prereleases, preventing pre-releases from overriding the “main” release.
Changes:
- Add a tag-validation step that derives the correct npm dist-tag (
latestvsalpha/beta/rc) from the Git tag. - Publish to npm using
npm publish --tag ...based on the derived dist-tag. - Configure the GitHub release action to treat
-alpha/-beta/-rctags as prereleases and to create releases as drafts by default.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
This allows us to publish pre-releases without affecting the main release. Also changed it so the GitHub release is a draft by default allowing us to do edits before publishing.
v0.9.2latestv0.9.2-alpha.1alphav0.9.2-beta.1betav0.9.2-rc.1rcWhat problem is being solved?
How is it being solved?
What changes are made to solve it?
References
Review Checklist
mainSummary by CodeRabbit