fix(ci): fetch full git history in Promote workflow#12535
Conversation
Lerna publish needs git tags to graduate prerelease packages; the shallow default checkout caused `bad revision 'undefined'` during promote. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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)
WalkthroughThe promote.yml GitHub Actions workflow's checkout step is updated to add ChangesCI Workflow Checkout Update
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
|
Preview: https://pf-react-pr-12535.surge.sh A11y report: https://pf-react-pr-12535-a11y.surge.sh |
Summary
fetch-depth: 0to the Promote workflow checkout step so Lerna can access git tags during--conventional-graduatepublishContext
The Promote workflow failed with
fatal: bad revision 'undefined'because the default shallow checkout does not include git tags. Lerna needs those tags to determine which packages changed since their last release when graduating prerelease versions to stable.Test plan
mainMade with Cursor
Summary by CodeRabbit