Skip to content

Commit 12caccc

Browse files
mirqtioclaude
andcommitted
fix(ci): use pnpm/action-setup instead of corepack to bypass Node 20.16.0 bug
The workflow was failing with corepack signature verification errors: Internal Error: Cannot find matching keyid Root cause: Node 20.16.0's bundled corepack has a known bug with signature verification that affects both `corepack enable` and `corepack prepare`. Fix: Replace corepack usage with pnpm/action-setup@v4 action which installs pnpm 9 directly, bypassing corepack entirely. This is the recommended approach for CI environments. Related: nodejs/corepack#358 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b912ac1 commit 12caccc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/playwright-baseline-allowlist.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ jobs:
2424
with:
2525
node-version: '20.16.0' # Match package.json engines.node
2626

27+
- uses: pnpm/action-setup@v4
28+
with:
29+
version: 9
30+
2731
- name: Install deps
28-
run: |
29-
corepack enable
30-
corepack prepare pnpm@9 --activate
31-
pnpm i --frozen-lockfile
32+
run: pnpm i --frozen-lockfile
3233

3334
- name: Generate Playwright selection from CSV
3435
id: select
@@ -50,10 +51,12 @@ jobs:
5051
with:
5152
node-version: '20.16.0' # Match package.json engines.node
5253

54+
- uses: pnpm/action-setup@v4
55+
with:
56+
version: 9
57+
5358
- name: Install browsers (Playwright)
5459
run: |
55-
corepack enable
56-
corepack prepare pnpm@9 --activate
5760
pnpm i --frozen-lockfile
5861
npx playwright install --with-deps
5962

0 commit comments

Comments
 (0)