-
-
Notifications
You must be signed in to change notification settings - Fork 4
feat(INFRA-2772): add automatic main version bump after release PR creation #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(INFRA-2772): add automatic main version bump after release PR creation #86
Conversation
I updated the 🔍 Comprehensive Comparison Analysis✅ PRESERVED FUNCTIONALITY1. Input Validation & Parameters - ✅ IDENTICAL
2. Helper Functions - ✅ ENHANCED
3. Git Configuration - ✅ PRESERVED
4. Release Branch Logic - ✅ IMPROVED
5. Version Updates - ✅ PRESERVED
6. Release PR Creation - ✅ ENHANCED
✅ CHANGELOG FUNCTIONALITY COMPARISONOriginal Changelog Logic - ✅ FULLY PRESERVED
Key Preservation:
🆕 NEW FUNCTIONALITY ADDED1. Version Bump for Main Branch - ✅ MAJOR ENHANCEMENT
2. Modular Architecture - ✅ IMPROVEMENT
3. Test Mode Support - ✅ ENHANCEMENT
4. Better Error Handling - ✅ IMPROVEMENT
🔧 TECHNICAL IMPROVEMENTS1. Code Organization - ✅ BETTER
2. DRY Principle - ✅ IMPROVED
3. Variable Handling - ✅ SAFER
|
554b368
to
2768413
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - for the mobile repo
Summary
JIRA: INFRA-2772
This PR adds automatic main branch version bumping to the
create-release-pr.yml
workflow to resolve nightly build version conflicts.Problem
Each nightly build needs to be one minor version ahead of the current release candidate. Previously, after cutting a release branch, the main branch version had to be manually bumped to prevent conflicts with future nightlies.
Example Issue: If RC is
12.23.0
, nightly builds should be12.24.0-<unique-id>
, but without version bumping, nightlies were conflicting because they weren't correctly versioned above the RC.Solution
Added a new job
bump-main-version
that:✅ Automated Version Calculation
semver
library to increment minor version12.23.0
→12.24.0
✅ Platform Consistency
set-semvar-version.sh
script for version updates✅ Manual Oversight
release-management
,version-bump
)Workflow Changes
The workflow now has two jobs:
create-release-pr
- Creates the release PR (existing functionality)bump-main-version
- Creates version bump PR for main branch (new)Example Flow
12.23.0
release/12.23.0
bump-main-version-12.24.0
12.24.0
Benefits
Testing
set-semvar-version.sh
scriptRelated
This change automates the post-release version bump process while maintaining necessary manual oversight for release management.