Skip to content

Commit

Permalink
Fix pnpm installation in CI and release workflows
Browse files Browse the repository at this point in the history
Add explicit pnpm version preparation to resolve corepack key check error
  • Loading branch information
lilac committed Feb 17, 2025
1 parent 5a2eb6f commit 7929566
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
registry-url: https://registry.npmjs.org

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

- shell: bash
run: pnpm install
Expand Down Expand Up @@ -62,7 +64,7 @@ jobs:
registry-url: https://registry.npmjs.org

- shell: bash
run: corepack enable
run: corepack enable && corepack prepare [email protected] --activate

- shell: bash
run: pnpm install
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
registry-url: https://registry.npmjs.org

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

- shell: bash
run: pnpm install
Expand Down

0 comments on commit 7929566

Please sign in to comment.