diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 522f4fa9..4da12fc7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -300,7 +300,7 @@ jobs: with: node-version: 24.x registry-url: 'https://registry.npmjs.org' - cache: 'pnpm' + package-manager-cache: false - name: Install dependencies run: pnpm install --frozen-lockfile --ignore-scripts @@ -323,7 +323,10 @@ jobs: echo "Bumping version for $PKG_NAME..." cd "packages/$PKG_NAME" OLD_VERSION=$(node -p "require('./package.json').version") - pnpm version "$BUMP" --no-git-tag-version + # --no-git-checks: skip pnpm's clean-tree check, which would + # otherwise fail on the second iteration once the first bump + # dirties the tree. + pnpm version "$BUMP" --no-git-tag-version --no-git-checks NEW_VERSION=$(node -p "require('./package.json').version") echo " $OLD_VERSION -> $NEW_VERSION"