From 092487d7adf3d22919d4272601f6f392bccd0334 Mon Sep 17 00:00:00 2001 From: gavrielc Date: Sun, 7 Jun 2026 17:03:02 +0300 Subject: [PATCH] chore: release 2.1.0; guard auto-bump against deliberate version changes Set package.json to 2.1.0 to match the CHANGELOG entry for the upgrade tripwire (a [BREAKING] change warrants a minor bump). The startup tripwire reads package.json as the source of truth, so this is the version the gate will enforce. bump-version.yml previously ran `pnpm version patch` on every push to main, which would patch a deliberate 2.1.0 up to 2.1.1. It now skips the auto-bump when the pushed commits already changed package.json themselves. fetch-depth: 0 so the before/after diff has both tips. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/bump-version.yml | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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",