From 1a1f680efcac46e373c2874812f0cfa9c2f79359 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Fri, 26 Apr 2024 00:04:28 +0000 Subject: [PATCH] chore(ci): do redundant setup-node step before checkout to enable yarn v4 before deps install --- .github/workflows/build-lint-test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 18d3a74..8228826 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -8,14 +8,18 @@ jobs: name: Prepare runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' - cache: 'yarn' + node-version: 'lts/*' - name: Install Yarn run: corepack enable + - uses: actions/checkout@v4 + - name: Use Node.js and install dependencies + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + cache: 'yarn' - name: Install Yarn dependencies run: yarn --immutable