From ac5ee1d1000c2b67d42b6630ea79041ace78affb Mon Sep 17 00:00:00 2001 From: Simon Clark Date: Sat, 21 Feb 2026 13:18:31 +0000 Subject: [PATCH] Add version tracking and auto-bump workflow Add VERSION file (1.0.0) and GitHub Action to auto-increment patch version on merge to main. Supports update notifications in Claude Code statusline. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/bump-version.yml | 31 ++++++++++++++++++++++++++++++ VERSION | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/bump-version.yml create mode 100644 VERSION diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 0000000..5403965 --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,31 @@ +name: Bump Version + +on: + push: + branches: [main] + +jobs: + bump: + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[skip bump]')" + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: Bump patch version + run: | + VERSION=$(cat VERSION) + IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION" + PATCH=$((PATCH + 1)) + NEW_VERSION="$MAJOR.$MINOR.$PATCH" + echo "$NEW_VERSION" > VERSION + echo "NEW_VERSION=$NEW_VERSION" >> "$GITHUB_ENV" + + - name: Commit version bump + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add VERSION + git commit -m "Bump version to $NEW_VERSION [skip bump]" + git push diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..3eefcb9 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.0