From bbcf2827d9b5085c480872159b5d27ea0ac88573 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 3 Feb 2025 14:35:43 +0100 Subject: [PATCH] ci: workaround corepack issue with actions (#3060) --- .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 f81e3ac20d..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: 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 5578ee92cc..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: 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: corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20