From 7c599a01e7fc88200d95787a1c785205201da30f Mon Sep 17 00:00:00 2001 From: Emma Imber <108270776+emma-imber@users.noreply.github.com> Date: Mon, 3 Feb 2025 11:35:36 +0000 Subject: [PATCH] Force corepack version to fix CI actions errors (#1774) * Force corepack version to fix CI actions errors * Try adding checkout * Move corepack install into jobs --- .github/workflows/beta-release-on-label.yml | 4 ++++ .github/workflows/ci.yml | 24 +++++++++++++++++++++ .github/workflows/e2e-playwright.yml | 4 ++++ .github/workflows/test-ad-load-time.yml | 4 ++++ 4 files changed, 36 insertions(+) diff --git a/.github/workflows/beta-release-on-label.yml b/.github/workflows/beta-release-on-label.yml index b2e5af724..eb755bb41 100644 --- a/.github/workflows/beta-release-on-label.yml +++ b/.github/workflows/beta-release-on-label.yml @@ -34,6 +34,10 @@ jobs: with: fetch-depth: 0 + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab545ee7d..2aa1459ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env @@ -30,6 +34,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env @@ -46,6 +54,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env @@ -59,6 +71,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env @@ -83,6 +99,10 @@ jobs: fetch-depth: 0 persist-credentials: false + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env @@ -132,6 +152,10 @@ jobs: fetch-depth: 0 persist-credentials: false + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env diff --git a/.github/workflows/e2e-playwright.yml b/.github/workflows/e2e-playwright.yml index 7780810c6..2ba6799e0 100644 --- a/.github/workflows/e2e-playwright.yml +++ b/.github/workflows/e2e-playwright.yml @@ -26,6 +26,10 @@ jobs: with: path: ./commercial + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - run: corepack enable working-directory: ./commercial shell: bash diff --git a/.github/workflows/test-ad-load-time.yml b/.github/workflows/test-ad-load-time.yml index f0768a359..0e33bfd66 100644 --- a/.github/workflows/test-ad-load-time.yml +++ b/.github/workflows/test-ad-load-time.yml @@ -18,6 +18,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 + # Temporarily force newer version of corepack + # See https://github.com/guardian/support-service-lambdas/pull/2666 + - run: npm install --global corepack@0.31.0 + - name: Set up Node uses: ./.github/actions/setup-node-env