From b397f322b50b8d4c8005a33b9cbcbd6d30fe5e5c Mon Sep 17 00:00:00 2001 From: Bulat Yapparov Date: Wed, 30 Sep 2026 15:39:11 +0100 Subject: [PATCH] chore(release): bump @aictrl/cli to 0.4.4 and guard tag/package version drift The v0.4.4 publish half-shipped: platform binaries were stamped with the tag version, but @aictrl/cli was published from package.json (still 0.4.3), so it re-tried an existing version and the smoke test could not find 0.4.4. Bump the package version and fail the publish job before any upload when the tag and package.json disagree. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_016Uxnh5yTnJtZmnBwKDdVzK --- .github/workflows/publish.yml | 15 +++++++++++++++ packages/cli/package.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 74beef0..f54c1db 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,6 +55,21 @@ jobs: echo "AICTRL_VERSION=$AICTRL_VERSION" >> "$GITHUB_ENV" bun turbo build + - name: Verify the release tag matches the @aictrl/cli package version + # publish-if-new.sh publishes @aictrl/cli with the version in + # packages/cli/package.json (only the platform binaries are stamped + # with the tag). If the two disagree, the platform binaries publish + # under the tag while @aictrl/cli silently re-tries an already + # published version and the release half-ships (v0.4.4, first run). + # Fail before publishing anything. + run: | + PKG_VERSION=$(node -p "require('./packages/cli/package.json').version") + if [ "$PKG_VERSION" != "$AICTRL_VERSION" ]; then + echo "::error::Release tag version $AICTRL_VERSION does not match packages/cli/package.json version $PKG_VERSION. Bump package.json on main, then re-create the release." + exit 1 + fi + echo "Release version $AICTRL_VERSION matches packages/cli/package.json" + - name: Publish @aictrl/util working-directory: packages/util run: ${{ github.workspace }}/.github/scripts/publish-if-new.sh "@aictrl/util" diff --git a/packages/cli/package.json b/packages/cli/package.json index 7fe81d0..0b39a78 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "0.4.3", + "version": "0.4.4", "name": "@aictrl/cli", "description": "Headless execution engine for AI agent skills", "type": "module",