fix: create git tags in release.ts for changesets/action#20
Conversation
Print New tag: only after an annotated tag exists so the Release workflow can push tags and open GitHub Releases instead of failing on missing refspecs.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe release script now ensures each package version has an annotated Git tag before printing the tag message consumed by the release action. ChangesRelease tagging
Sequence Diagram(s)sequenceDiagram
participant ReleaseScript
participant Git
participant ChangesetsAction
ReleaseScript->>Git: Check package tag with git rev-parse
Git-->>ReleaseScript: Tag exists or is missing
ReleaseScript->>Git: Create annotated tag when missing
ReleaseScript->>ChangesetsAction: Print New tag: name@version
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Summary
npm publish,scripts/release.tsnow creates an annotatedname@versiongit tag (idempotent if it already exists) before printingNew tag: ….changesets/actionwithcreateGithubReleases: true— it can push the tag and open a GitHub Release instead of failing withsrc refspec does not match any.Test plan
ensureReleaseTaginscripts/release.tsSummary by CodeRabbit