From 20f67ece9b4ece3178221c512223a4ffd85e3cb8 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 23 Aug 2022 15:30:05 +0200 Subject: [PATCH] chore: actually interpolate node version in node_modules cache key (#513) --- .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 0706ea22..77fbd173 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