From 7929566270b32cf64118cdffa40ef691e7d93ede Mon Sep 17 00:00:00 2001 From: Junjun Deng Date: Mon, 17 Feb 2025 22:58:03 +0800 Subject: [PATCH] Fix pnpm installation in CI and release workflows Add explicit pnpm version preparation to resolve corepack key check error --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/release.yml | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a004a4c..b246be4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 pnpm@10.0.0 --activate - shell: bash run: pnpm install @@ -62,7 +64,7 @@ jobs: registry-url: https://registry.npmjs.org - shell: bash - run: corepack enable + run: corepack enable && corepack prepare pnpm@10.0.0 --activate - shell: bash run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e8c0fc..c105966 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 pnpm@10.0.0 --activate - shell: bash run: pnpm install