From fa4181d4a49f20f370e1ca3856014db899a20bef Mon Sep 17 00:00:00 2001 From: Taui Silva Date: Wed, 20 Mar 2024 20:39:36 -0300 Subject: [PATCH] Update main.yaml --- .github/workflows/main.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 9d5b833..483dd2e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -23,18 +23,13 @@ jobs: env: cache-name: cache-node-modules with: + # npm cache files are stored in `~/.npm` on Linux/macOS path: ~/.npm - key: \{\{ runner\.os \}\}\-build\-{{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | - \{\{ runner\.os \}\}\-build\-{{ env.cache-name }}- + ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- - ${{ runner.os }}- - cache-invalidation-period: 1d - - - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} - name: List the state of node modules - continue-on-error: true - run: npm list + ${{ runner.os }}- - name: Install dependencies run: npm ci