From d03367adf09d1a87e429ca742745e25eeb3d55fe Mon Sep 17 00:00:00 2001 From: Sergio Cinos Date: Tue, 5 Nov 2024 23:04:07 +0100 Subject: [PATCH] Use current node and yarn version in PR workflow (#154) --- .github/workflows/pr-build-and-test.yaml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr-build-and-test.yaml b/.github/workflows/pr-build-and-test.yaml index b91cdf2..2c6f835 100644 --- a/.github/workflows/pr-build-and-test.yaml +++ b/.github/workflows/pr-build-and-test.yaml @@ -14,24 +14,17 @@ jobs: - name: Checkout uses: actions/checkout@master - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v1 - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + - name: Enable Corepack + run: corepack enable - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 19 + cache: yarn + node-version-file: .nvmrc - name: Install Dependencies - run: yarn install --frozen-lockfile + run: yarn install --immutable - name: Lint run: yarn lint