chore: Abstract version bump and commit into re-usable workflows and remove ephemeral branch#30418
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
a8cf7ec to
c03b3f3
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Running E2E tests would provide no validation value for these purely CI/CD infrastructure changes. Performance Test Selection: |



Description
To simplify workflows, we can remove the ephemeral branches used while version bumping and replace it with version bumps within the workflow itself. No need to manage separate branches. We can also take this opportunity to modularize the concerns associated with:
These abstractions will allow us to scale as new scenarios are introduced into workflows as well as support our existing workflows that depend on version bumping capabilities
Changelog
CHANGELOG entry:
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MCWP-619
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Refactors release/build GitHub Actions workflows to change how version bumps are generated/committed and when they are applied, which can impact all CI build/release pipelines if misconfigured.
Overview
Refactors CI build pipelines to remove ephemeral build branches and the in-build version-bump step, replacing them with two reusable workflows:
generate-build-version.yml(fetch next build number) andcommit-build-version.yml(apply/commit/push a provided build number).Updates
build.ymlto accept an optionalbuild_numberand apply it locally on runners (no commit) when building from an unbumped ref, and rewires RC/prod/runway/nightly/TestFlight/BrowserStack workflows to use the new generate/commit flow and reducedcontentspermissions. Cleans up legacy workflows (create-build-branch.yml,create-release-pr-legacy.yml) and simplifies TestFlight upload inputs by droppingbuild_branch.Reviewed by Cursor Bugbot for commit 26eaefe. Bugbot is set up for automated code reviews on this repo. Configure here.