From 15bc3c45a0ee5297636075759ae3401809c73748 Mon Sep 17 00:00:00 2001 From: Jed Fox <git@jedfox.com> Date: Sun, 11 Jun 2023 13:37:20 -0400 Subject: [PATCH] Partition GitHub Actions cache based on Node version (#1118) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should fix the test failures on `master` — currently tests are failing because the cache was created with an old version of Node. --- .github/actions/setup/action.yml | 2 +- upcoming-release-notes/1118.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/1118.md diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 55b620393..fbf55830d 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -12,7 +12,7 @@ runs: id: cache with: path: '**/node_modules' - key: yarn-v1-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + key: yarn-v1-${{ runner.os }}-${{ hashFiles('.nvmrc') }}-${{ hashFiles('**/yarn.lock') }} - name: Install run: yarn --immutable shell: bash diff --git a/upcoming-release-notes/1118.md b/upcoming-release-notes/1118.md new file mode 100644 index 000000000..e27c1ee0b --- /dev/null +++ b/upcoming-release-notes/1118.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [j-f1] +--- + +Partition GitHub Actions cache based on Node version -- GitLab