ci: RC pre-release bumps minor version, consolidating dev patches

Dev patches (02.33.01, 02.33.02, etc.) exist for the update system.
RC consolidates to next minor: 02.33.xx → 02.34.00-rc.
auto-release already uses --bump minor for stable.

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-06-04 12:33:01 -05:00
parent 65a6cdf505
commit 7bd9213ec5
+11
View File
@@ -103,6 +103,17 @@ jobs:
# Strip any existing suffix from version before applying stability
VERSION=$(echo "$VERSION" | sed 's/-\(dev\|alpha\|beta\|rc\)$//')
# RC and stable consolidate dev patches into a clean minor bump
# e.g. 02.33.15 → 02.34.00 (not 02.33.15-rc)
case "$STABILITY" in
release-candidate)
MAJOR=$(echo "$VERSION" | cut -d. -f1)
MINOR=$(echo "$VERSION" | cut -d. -f2)
MINOR=$(printf "%02d" $((10#$MINOR + 1)))
VERSION="${MAJOR}.${MINOR}.00"
;;
esac
php ${MOKO_CLI}/version_set_platform.php \
--path . --version "$VERSION" --branch "${{ github.ref_name }}" --stability "$STABILITY" 2>/dev/null || true