Skip to content

Commit 7929566

Browse files
committed
Fix pnpm installation in CI and release workflows
Add explicit pnpm version preparation to resolve corepack key check error
1 parent 5a2eb6f commit 7929566

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
registry-url: https://registry.npmjs.org
2828

2929
- shell: bash
30-
run: corepack enable
30+
# Workaround for pnpm key check error
31+
# https://github.com/nodejs/corepack/issues/612#issuecomment-2615343301
32+
run: corepack enable && corepack prepare [email protected] --activate
3133

3234
- shell: bash
3335
run: pnpm install
@@ -62,7 +64,7 @@ jobs:
6264
registry-url: https://registry.npmjs.org
6365

6466
- shell: bash
65-
run: corepack enable
67+
run: corepack enable && corepack prepare [email protected] --activate
6668

6769
- shell: bash
6870
run: pnpm install

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
registry-url: https://registry.npmjs.org
1717

1818
- shell: bash
19-
run: corepack enable
19+
# Workaround for pnpm key check error
20+
# https://github.com/nodejs/corepack/issues/612#issuecomment-2615343301
21+
run: corepack enable && corepack prepare [email protected] --activate
2022

2123
- shell: bash
2224
run: pnpm install

0 commit comments

Comments
 (0)