From 3b28860fe6b5962d17975a23e3021ea864a224e2 Mon Sep 17 00:00:00 2001 From: Tom Scanlan Date: Thu, 30 Jul 2026 07:24:31 -0400 Subject: [PATCH] fix(release): move the version chain into a script so pnpm runs it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit changesets/action executes its `version:` input through @actions/exec with no shell, so the `&&` in version: pnpm changeset version && pnpm install --lockfile-only arrives as a literal argument. pnpm runs `changeset version '&&' pnpm install --lockfile-only` and changesets stops with "Too many arguments passed to changesets". It exits 0 while doing so, so the action reads the version step as successful, force-pushes a changeset-release/main identical to main, and then fails opening the PR with "No commits between main and changeset-release/main" — a long way from the real cause. Putting the chain in the existing `version-packages` script hands the `&&` to pnpm's own shell, which is the pattern changesets/action documents. Verified by running both forms without a shell: the current input errors as above and leaves the tree untouched, while `pnpm run version-packages` consumes the pending changeset, bumps @atmo-dev/events-ui 0.1.0 -> 0.2.0 and writes its CHANGELOG. --- .github/workflows/release.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a311512..03f029c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,7 @@ jobs: - name: 🚀 Version or Publish uses: changesets/action@v1 with: - version: pnpm changeset version && pnpm install --lockfile-only + version: pnpm run version-packages publish: pnpm changeset publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 4e0a420..cd528d6 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "format": "prettier --write .", "package:ui": "pnpm --filter @atmo-dev/events-ui package", "changeset": "changeset", - "version-packages": "changeset version", + "version-packages": "changeset version && pnpm install --lockfile-only", "release": "changeset publish" }, "license": "MIT", -- 2.51.2