From b027c43a18f37a0278e97d1668fdd38174f74dfa Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Wed, 25 Aug 2021 10:59:14 -0700 Subject: [PATCH] Cache node_modules too --- .github/workflows/ensure-build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ensure-build.yml b/.github/workflows/ensure-build.yml index 471c298..c4e8db1 100644 --- a/.github/workflows/ensure-build.yml +++ b/.github/workflows/ensure-build.yml @@ -17,6 +17,13 @@ jobs: with: node-version: '14' cache: 'npm' + - name: Restore node_modulescache + uses: actions/cache@v2 + with: + path: node_modules + key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node_modules - name: Restore Asset Caches uses: actions/cache@v2 with: @@ -24,6 +31,6 @@ jobs: path: | ./if-cache ./twitter-cache.json - - run: npm ci + - run: npm i - run: npm test - run: npm run build