From 6ab6e339fe521f76b0ee8a4f886aa7b91c80e1aa Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Wed, 5 Feb 2025 01:14:52 +0800 Subject: [PATCH] Use corepack in CI environment --- .github/workflows/build-development.yml | 4 ++++ .github/workflows/ci.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build-development.yml b/.github/workflows/build-development.yml index 85dd4725ca..a9cfe6f88f 100644 --- a/.github/workflows/build-development.yml +++ b/.github/workflows/build-development.yml @@ -11,6 +11,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + # Has to be run before actions/setup-node. + # See: https://github.com/actions/setup-node/issues/480 + - name: Enable corepack for Yarn + run: corepack enable - name: Setup node uses: actions/setup-node@v4 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0bf5edc7c..41c98428f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + # Has to be run before actions/setup-node. + # See: https://github.com/actions/setup-node/issues/480 + - name: Enable corepack for Yarn + run: corepack enable - name: Setup node uses: actions/setup-node@v4 with: