From e234d16d5fec3a9bb18b3e85e53a27fbb5cdf60c Mon Sep 17 00:00:00 2001 From: Gilbert Gilb's Date: Sat, 30 Dec 2023 09:31:04 +0100 Subject: [PATCH] fix(ci): enable corepack sooner CI was failing, probably because of a change in the setup-node action: https://github.com/gilbsgilbs/babel-plugin-i18next-extract/actions/runs/7363053375/job/20042120587?pr=264 Enabling corepack before starting the action should fix the issue. See https://github.com/actions/setup-node/issues/480#issuecomment-1820622085 --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 009cd4f..5a613d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,12 +12,12 @@ jobs: name: Run static checks steps: - uses: actions/checkout@v4 + - run: corepack enable - name: Setup node uses: actions/setup-node@v4 with: node-version: ${{ env.MAIN_NODE_VERSION }} cache: 'yarn' - - run: corepack enable - run: yarn install - run: yarn run lint - run: yarn run types @@ -30,12 +30,12 @@ jobs: node: ["18", "20", "21"] steps: - uses: actions/checkout@v4 + - run: corepack enable - name: Setup node uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: 'yarn' - - run: corepack enable - name: Install dependencies run: yarn install - name: Run tests @@ -49,11 +49,11 @@ jobs: name: Build steps: - uses: actions/checkout@v4 + - run: corepack enable - name: Setup node uses: actions/setup-node@v4 with: node-version: ${{ env.MAIN_NODE_VERSION }} - - run: corepack enable - run: yarn install - run: yarn run build - uses: actions/upload-artifact@v3