From fcbe06953ecbb16c220923f7f2afead8795a3122 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 3 Feb 2025 14:21:25 +0100 Subject: [PATCH 1/4] ci: workaround corepack issue with npm --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5578ee92cc..cd944d0a5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,11 +34,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - run: corepack enable - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm + - run: npm i -g corepack && corepack enable - uses: oven-sh/setup-bun@v2 if: ${{ matrix.os != 'windows-latest' }} with: From 801fd986962b5b39d79755bacadec93498e7d0e2 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 3 Feb 2025 14:24:20 +0100 Subject: [PATCH 2/4] move run before --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd944d0a5b..408521bf7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,11 +34,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: npm i -g corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - - run: npm i -g corepack && corepack enable - uses: oven-sh/setup-bun@v2 if: ${{ matrix.os != 'windows-latest' }} with: From ed3bb7099d37454b42011663584a35b6cc7d05fe Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 3 Feb 2025 14:25:56 +0100 Subject: [PATCH 3/4] update --- .github/workflows/autofix.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index f81e3ac20d..7ab83aae22 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable + - run: npm i -g corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 408521bf7e..77fe17f348 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - run: corepack enable + - run: npm i -g corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20 From 0a6697f1c3edae78fa31385e6b75d7e4d35f9f64 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 3 Feb 2025 14:28:41 +0100 Subject: [PATCH 4/4] update --- .github/workflows/autofix.yml | 2 +- .github/workflows/ci.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 7ab83aae22..ff653a1b75 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: npm i -g corepack && corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77fe17f348..5769a89ed8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - run: npm i -g corepack && corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20 @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - run: npm i -g corepack && corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20