From cfc0d9b68fefdd6647ea591f2b5d9172700f760a Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 2 May 2026 18:45:05 -0500 Subject: [PATCH] fix: stable release = major version bump (XX+1.00.00) Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/auto-release.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/auto-release.yml b/.gitea/workflows/auto-release.yml index ae09e5a4..3e23e8aa 100644 --- a/.gitea/workflows/auto-release.yml +++ b/.gitea/workflows/auto-release.yml @@ -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'