From 074f4bbe4f7062789197653e0172b5525c31147b Mon Sep 17 00:00:00 2001 From: Alex Kempton Date: Thu, 5 Dec 2024 16:01:25 +0100 Subject: [PATCH 1/2] 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: | From f8cbbbea716ee16a2c5593929e2d6dfd236c4c08 Mon Sep 17 00:00:00 2001 From: Alex Kempton Date: Thu, 5 Dec 2024 16:41:47 +0100 Subject: [PATCH 2/2] yarn skip build --- .github/workflows/pr-checks.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 6f0c7427..470f9e2f 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -19,21 +19,8 @@ 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 install --immutable --check-cache # Immutable mode to ensure lock file consistency + run: yarn install --mode=skip-build - name: Run TypeScript, ESLint, and Prettier checks run: |