From e811ef26843d26680a310128fa1baa25e996ec82 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 12 Dec 2023 09:18:27 +0000 Subject: [PATCH] Avoid Node.js setup cache restore delays Downgrades to v3 to avoid a bug in GitHub actions/cache https://github.com/actions/cache/issues/810 Cache restore times for ~/.npm going over 5 minutes --- .github/workflows/actions/setup-node/action.yml | 2 +- .github/workflows/sass.yaml | 8 ++++---- .github/workflows/tests.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/actions/setup-node/action.yml b/.github/workflows/actions/setup-node/action.yml index 51fbe1aed8..c0dea6cfd1 100644 --- a/.github/workflows/actions/setup-node/action.yml +++ b/.github/workflows/actions/setup-node/action.yml @@ -11,7 +11,7 @@ runs: steps: - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 id: setup-node with: diff --git a/.github/workflows/sass.yaml b/.github/workflows/sass.yaml index 35a6399da9..7c7cff1a5a 100644 --- a/.github/workflows/sass.yaml +++ b/.github/workflows/sass.yaml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm node-version: 8 # Node.js 8 supported by Dart Sass v1.0.0 @@ -47,7 +47,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm check-latest: true @@ -77,7 +77,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm node-version: 4 # Node.js 4 supported by Node Sass v3.4.0 @@ -100,7 +100,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm check-latest: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65ddccf9a0..e30e200bb3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -275,7 +275,7 @@ jobs: uses: ./.github/workflows/actions/build - name: Change Node.js version - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: node-version: ${{ matrix.node-version }}