fix: stable release = major version bump (XX+1.00.00)
Repo Health / Access control (push) Successful in 1s
Repo Health / Release configuration (push) Failing after 3s
Repo Health / Scripts governance (push) Successful in 3s
Repo Health / Repository health (push) Failing after 3s
Repository Cleanup / Clean Merged Branches (push) Successful in 25s
Security Audit / Dependency Audit (push) Successful in 3s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-05-02 18:45:05 -05:00
parent 77f53d3347
commit cfc0d9b68f
+7 -13
View File
@@ -117,8 +117,8 @@ jobs:
echo "Version: $VERSION (patch — platform version + badges only)"
fi
# -- STEP 1b: Bump minor version (stable = minor bump, reset patch) ------
- name: "Step 1b: Bump minor version for stable release"
# -- STEP 1b: Bump major version (stable = major bump, reset minor+patch) -
- name: "Step 1b: Bump major version for stable release"
if: steps.version.outputs.skip != 'true'
id: bump
run: |
@@ -126,19 +126,14 @@ jobs:
[ -z "$CURRENT" ] && { echo "skip=true" >> "$GITHUB_OUTPUT"; exit 0; }
MAJOR=$((10#$(echo "$CURRENT" | cut -d. -f1)))
MINOR=$((10#$(echo "$CURRENT" | cut -d. -f2)))
# Minor bump, reset patch. Rollover if minor > 99
MINOR=$((MINOR + 1))
if [ $MINOR -gt 99 ]; then
MINOR=0
MAJOR=$((MAJOR + 1))
fi
# Major bump, reset minor and patch
MAJOR=$((MAJOR + 1))
VERSION=$(printf "%02d.%02d.00" $MAJOR $MINOR)
VERSION=$(printf "%02d.00.00" $MAJOR)
TODAY=$(date +%Y-%m-%d)
echo "Stable bump: ${CURRENT} → ${VERSION} (minor)"
echo "Stable bump: ${CURRENT} → ${VERSION} (major)"
# Update README.md
sed -i "s/VERSION:[[:space:]]*${CURRENT}/VERSION: ${VERSION}/" README.md
@@ -157,14 +152,13 @@ jobs:
git remote set-url origin "https://jmiller:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git"
git add -A
git diff --cached --quiet || {
git commit -m "chore(version): bump ${CURRENT} → ${VERSION} (stable) [skip ci]"
git commit -m "chore(version): bump ${CURRENT} → ${VERSION} (major) [skip ci]"
git push origin HEAD:main 2>&1
}
# Override version output for rest of pipeline
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "major=$(printf "%02d" $MAJOR)" >> "$GITHUB_OUTPUT"
echo "minor=$(printf "%02d.%02d" $MAJOR $MINOR)" >> "$GITHUB_OUTPUT"
- name: Check if already released
if: steps.version.outputs.skip != 'true'