From 164a5bdcf643264f077b98cd47625b99343b3d64 Mon Sep 17 00:00:00 2001 From: Priyanshu Doshi Date: Mon, 13 Jul 2026 18:13:32 +0530 Subject: [PATCH 1/2] ci: pin pnpm to 11.12.0 to fix action-setup self-installer crash pnpm/action-setup@v6 with `version: 11` installs pnpm 11.7.0, whose self-installer then tries to auto-update to 11.12.0 and crashes with "Cannot use 'in' operator to search for 'integrity' in undefined", failing every CI job at the setup step. Pinning the exact version skips the self-update path. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_012NYABsujYnppjqWGAjywLG --- .github/workflows/automated-tests.yml | 2 +- .github/workflows/ci.yml | 10 +++++----- .github/workflows/e2e.yml | 2 +- .github/workflows/visual-regression.yml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/automated-tests.yml b/.github/workflows/automated-tests.yml index 22438c06d..24b1234ce 100644 --- a/.github/workflows/automated-tests.yml +++ b/.github/workflows/automated-tests.yml @@ -17,7 +17,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - name: Initialize Node.js Environment uses: actions/setup-node@v6 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 428bb6922..74ca3aca2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - uses: actions/setup-node@v6 with: node-version: 22 @@ -41,7 +41,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - uses: actions/setup-node@v6 with: node-version: 22 @@ -64,7 +64,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - uses: actions/setup-node@v6 with: node-version: 22 @@ -110,7 +110,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - uses: actions/setup-node@v6 with: node-version: 22 @@ -130,7 +130,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - uses: actions/setup-node@v6 with: node-version: 22 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 99da69366..800351e14 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -30,7 +30,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - uses: actions/setup-node@v6 with: node-version: 22 diff --git a/.github/workflows/visual-regression.yml b/.github/workflows/visual-regression.yml index 401300788..aafc26e95 100644 --- a/.github/workflows/visual-regression.yml +++ b/.github/workflows/visual-regression.yml @@ -44,7 +44,7 @@ jobs: - uses: pnpm/action-setup@v6 with: - version: 11 + version: 11.12.0 - name: Setup Node uses: actions/setup-node@v6 From 02137bf4cb348dec8aee7619ce59eca0e9f6923f Mon Sep 17 00:00:00 2001 From: Priyanshu Doshi Date: Mon, 13 Jul 2026 18:16:43 +0530 Subject: [PATCH 2/2] ci: use corepack for pnpm instead of pnpm/action-setup Pinning the version wasn't enough: pnpm/action-setup@v6 always bootstraps pnpm 11.7.0 and then "switches" to the requested version, and that switch is what crashes ("Cannot use 'in' operator to search for 'integrity' in undefined"). Replace the action with `corepack enable && corepack prepare pnpm@11.12.0 --activate`, which fetches pnpm directly and bypasses the broken self-installer. Kept the step ahead of setup-node so `cache: pnpm` still resolves. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_012NYABsujYnppjqWGAjywLG --- .github/workflows/automated-tests.yml | 5 ++--- .github/workflows/ci.yml | 25 ++++++++++--------------- .github/workflows/e2e.yml | 5 ++--- .github/workflows/visual-regression.yml | 5 ++--- 4 files changed, 16 insertions(+), 24 deletions(-) diff --git a/.github/workflows/automated-tests.yml b/.github/workflows/automated-tests.yml index 24b1234ce..79b6f658c 100644 --- a/.github/workflows/automated-tests.yml +++ b/.github/workflows/automated-tests.yml @@ -15,9 +15,8 @@ jobs: - name: Checkout Code Repository Layers uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - name: Initialize Node.js Environment uses: actions/setup-node@v6 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74ca3aca2..7aebf142d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,8 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - uses: actions/setup-node@v6 with: node-version: 22 @@ -39,9 +38,8 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - uses: actions/setup-node@v6 with: node-version: 22 @@ -62,9 +60,8 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - uses: actions/setup-node@v6 with: node-version: 22 @@ -108,9 +105,8 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - uses: actions/setup-node@v6 with: node-version: 22 @@ -128,9 +124,8 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - uses: actions/setup-node@v6 with: node-version: 22 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 800351e14..5cb34abaa 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -28,9 +28,8 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - uses: actions/setup-node@v6 with: node-version: 22 diff --git a/.github/workflows/visual-regression.yml b/.github/workflows/visual-regression.yml index aafc26e95..cc6e4dcb6 100644 --- a/.github/workflows/visual-regression.yml +++ b/.github/workflows/visual-regression.yml @@ -42,9 +42,8 @@ jobs: - name: Checkout uses: actions/checkout@v7 - - uses: pnpm/action-setup@v6 - with: - version: 11.12.0 + - name: Setup pnpm + run: corepack enable && corepack prepare pnpm@11.12.0 --activate - name: Setup Node uses: actions/setup-node@v6