From 074f4bbe4f7062789197653e0172b5525c31147b Mon Sep 17 00:00:00 2001 From: Alex Kempton Date: Thu, 5 Dec 2024 16:01:25 +0100 Subject: [PATCH] potential gh actions fix --- .github/workflows/pr-checks.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 6e3a0a8e..6f0c7427 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -19,8 +19,21 @@ jobs: with: node-version: '20' + - name: Install Yarn + run: corepack enable && corepack prepare yarn@4.5.3 --activate # Specify the Yarn version you're using + + - name: Cache Yarn dependencies + uses: actions/cache@v3 + with: + path: | + .yarn/cache + node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Install dependencies - run: yarn + run: yarn install --immutable --check-cache # Immutable mode to ensure lock file consistency - name: Run TypeScript, ESLint, and Prettier checks run: |