From 9be8e1b65fe1c4edf4d033be3e73977cb9540f8a Mon Sep 17 00:00:00 2001 From: Roy Li Date: Wed, 20 Nov 2024 22:56:03 +0100 Subject: [PATCH] chore: enable Corepack before setting up Node.js in CI workflow --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7779aa6bb..e74a033bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,15 +19,17 @@ jobs: steps: - uses: actions/checkout@v3 + # This has to be done before setting up Node.js, + # more info found in https://github.com/actions/setup-node/issues/531#issuecomment-1872977503 + - name: Enable Corepack + run: corepack enable + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' - - name: Enable Corepack - run: corepack enable - - name: Install dependencies run: | pnpm install