diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 623b5e5..393642c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,14 +16,8 @@ jobs: uses: actions/cache@v2 id: node-cache with: - path: | - ~/.npm - ~/node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + path: node_modules + key: node-modules-${{ hashFiles('package-lock.json') }} - name: Install dependencies if: steps.node-cache.outputs.cache-hit != 'true' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8090648..8f397c7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,14 +19,8 @@ jobs: uses: actions/cache@v2 id: node-cache with: - path: | - ~/.npm - ~/node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + path: node_modules + key: node-modules-${{ hashFiles('package-lock.json') }} - name: Install dependencies if: steps.node-cache.outputs.cache-hit != 'true'