diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index eaecb6216..2646bf539 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -18,12 +18,20 @@ jobs: - uses: actions/checkout@v4 with: + fetch-depth: 0 token: ${{ steps.app-token.outputs.token }} - uses: pnpm/action-setup@v4 - name: Bump patch version run: | + # Skip the auto-bump when the pushed commits already changed the + # version themselves (e.g. a release PR that set a minor/major). + # Otherwise the bot would patch a deliberate 2.1.0 up to 2.1.1. + if git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" | grep -qx 'package.json'; then + echo "package.json already changed in this push; skipping auto-bump." + exit 0 + fi pnpm version patch --no-git-tag-version git add package.json git diff --cached --quiet && exit 0 diff --git a/package.json b/package.json index 88f4c33a9..c35643809 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nanoclaw", - "version": "2.0.76", + "version": "2.1.0", "description": "Personal Claude assistant. Lightweight, secure, customizable.", "type": "module", "packageManager": "pnpm@10.33.0",