From e807853d5ec9a275028434ea14d7b30296901de7 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:09:09 +0000 Subject: [PATCH] fix: replace pnpm/action-setup@v6 with corepack in all CI workflows All CI workflows updated to use corepack instead of pnpm/action-setup@v6: - ci.yml (4 jobs) - lint.yml - release.yml - changeset-release.yml - performance-budget.yml - shadcn-check.yml - storybook-deploy.yml - storybook-tests.yml - dependabot-auto-merge.yml Corepack reads the exact packageManager field from package.json with SHA verification, ensuring consistent pnpm version across local dev and CI. Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/e2dacbe8-6e60-47e1-9acd-5416a058077e Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- .github/workflows/changeset-release.yml | 9 ++--- .github/workflows/ci.yml | 37 ++++++++++++--------- .github/workflows/dependabot-auto-merge.yml | 9 ++--- .github/workflows/lint.yml | 9 ++--- .github/workflows/performance-budget.yml | 9 ++--- .github/workflows/release.yml | 9 ++--- .github/workflows/shadcn-check.yml | 11 +++--- .github/workflows/storybook-deploy.yml | 9 ++--- .github/workflows/storybook-tests.yml | 9 ++--- 9 files changed, 62 insertions(+), 49 deletions(-) diff --git a/.github/workflows/changeset-release.yml b/.github/workflows/changeset-release.yml index dddcb8447..326189715 100644 --- a/.github/workflows/changeset-release.yml +++ b/.github/workflows/changeset-release.yml @@ -23,10 +23,11 @@ jobs: fetch-depth: 0 submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3fcc5934..f9837a209 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 @@ -62,10 +63,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 @@ -117,10 +119,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 @@ -204,11 +207,13 @@ jobs: fi fi - - name: Setup pnpm + - name: Enable Corepack if: steps.docs-changes.outputs.should_run == 'true' - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + run: corepack enable + + - name: Verify pnpm version + if: steps.docs-changes.outputs.should_run == 'true' + run: pnpm --version - name: Setup Node.js if: steps.docs-changes.outputs.should_run == 'true' diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index cc30a5809..77899dbc9 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -18,10 +18,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 25e2f7731..76db98696 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,10 +21,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/performance-budget.yml b/.github/workflows/performance-budget.yml index 054535c4d..f7cc39c31 100644 --- a/.github/workflows/performance-budget.yml +++ b/.github/workflows/performance-budget.yml @@ -32,10 +32,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3f36a391..4949cf813 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,10 +20,11 @@ jobs: fetch-depth: 0 submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/shadcn-check.yml b/.github/workflows/shadcn-check.yml index c9b086822..ca824daea 100644 --- a/.github/workflows/shadcn-check.yml +++ b/.github/workflows/shadcn-check.yml @@ -19,11 +19,12 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 - + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version + - name: Setup Node.js uses: actions/setup-node@v6 with: diff --git a/.github/workflows/storybook-deploy.yml b/.github/workflows/storybook-deploy.yml index 08953dffc..c5485a819 100644 --- a/.github/workflows/storybook-deploy.yml +++ b/.github/workflows/storybook-deploy.yml @@ -28,10 +28,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - name: Setup Node.js uses: actions/setup-node@v6 diff --git a/.github/workflows/storybook-tests.yml b/.github/workflows/storybook-tests.yml index 9a00caf20..39974433e 100644 --- a/.github/workflows/storybook-tests.yml +++ b/.github/workflows/storybook-tests.yml @@ -31,10 +31,11 @@ jobs: with: submodules: true - - name: Setup pnpm - uses: pnpm/action-setup@v6 - with: - version: 10.31.0 + - name: Enable Corepack + run: corepack enable + + - name: Verify pnpm version + run: pnpm --version - uses: actions/setup-node@v6 with: