From b75715491e3481d6b0aa0a5ce1686fc050d1bd8d Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 23 Aug 2022 15:28:50 +0200 Subject: [PATCH] chore: actually interpolate node version in node_modules cache key --- .github/workflows/nodejs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5a2c7e68..da2a9765 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -32,9 +32,9 @@ jobs: id: cache with: path: node_modules - key: ${{ matrix.os }}-{{ matrix.node-version }}-node_modules-${{ hashFiles('**/package.json') }} + key: ${{ matrix.os }}-${{ matrix.node-version }}-node_modules-${{ hashFiles('**/package.json') }} restore-keys: | - ${{ matrix.os }}-{{ matrix.node-version }}-node_modules- + ${{ matrix.os }}-${{ matrix.node-version }}-node_modules- - name: Install Dependencies if: steps.cache.outputs.cache-hit != 'true' run: npm i