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
sethkfman
left a comment
There was a problem hiding this comment.
LGTM - for the mobile repo
Summary
JIRA: INFRA-2772
This PR adds automatic main branch version bumping to the
create-release-pr.ymlworkflow 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-versionthat:✅ Automated Version Calculation
semverlibrary to increment minor version12.23.0→12.24.0✅ Platform Consistency
set-semvar-version.shscript 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.0release/12.23.0bump-main-version-12.24.012.24.0Benefits
Testing
set-semvar-version.shscriptRelated
This change automates the post-release version bump process while maintaining necessary manual oversight for release management.