fix(canary): append canary suffix without bumping version - #508
Conversation
npm version prerelease bumped the patch version (0.5.0 -> 0.5.1-canary-*.0). Instead, append the canary suffix directly to the current version so the canary tag is e.g. 0.5.0-canary-<commitid>.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe canary publish workflow preserves the existing package version and appends a ChangesCanary publishing
Estimated code review effort: 2 (Simple) | ~5 minutes Merge Risk: ⚪ Minimal · up to This localized workflow change updates canary version formatting without increasing the package version; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
|
@coderabbitai review |
|
|
@coderabbitai full review |
✅ Action performedFull review finished. |
npm version prerelease bumped the patch version (0.5.0 -> 0.5.1-canary-*.0). Instead, append the canary suffix directly to the current version so the canary tag is e.g. 0.5.0-canary-<commitid>. Co-authored-by: humble-little-bear <retric@ckba.build>
Summary
The canary release CI currently uses
npm version prerelease --preid="canary-$SHORT_COMMIT_ID", which bumps the patch version before appending the canary suffix. For example, on version0.5.0it publishes a tag like:0.5.1-canary-<commitid>.0This change makes the canary tag not bump the version. It takes the current version and appends the canary suffix directly, so on
0.5.0it now publishes:0.5.0-canary-<commitid>How
Replaced
npm version prereleasewith:npm pkg setsets the version field directly without npm-version's bump logic (no patch increment, no trailing.0build number).npm publish --tag canaryconsumes the version straight frompackage.json, verified with a dry-run against a local0.5.0.Verification
npm version prerelease --preid=canary-abc123):0.5.0 → 0.5.1-canary-abc123.0npm pkg set version=...):0.5.0 → 0.5.0-canary-abc123✓ (publish dry-run accepted)