From db688d208d136a45d2df8365a47d2933c26c19cd Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Fri, 11 Jun 2021 14:05:28 -0400 Subject: [PATCH] Use default cache directory --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ff05c582b..4298a7ff62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: id: npm-cache uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: - path: '.npm' + path: '~/.npm' key: ${{ runner.os }}-${{ github.run_id }}-npm-${{ hashFiles('**/package-lock.json') }} - name: Set Node options @@ -71,7 +71,7 @@ jobs: shell: pwsh - name: Install Node dependencies - run: npm ci --cache .npm + run: npm ci - name: Run linter run: npm run lint @@ -135,7 +135,7 @@ jobs: id: npm-cache uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: - path: '.npm' + path: '%AppData%/npm-cache' key: ${{ runner.os }}-${{ github.run_id }}-npm-${{ hashFiles('**/package-lock.json') }} - name: Set Node options @@ -184,7 +184,7 @@ jobs: shell: pwsh - name: Install Node dependencies - run: npm ci --cache .npm + run: npm ci - name: Run linter run: npm run lint @@ -280,7 +280,7 @@ jobs: id: npm-cache uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: - path: '.npm' + path: '~/.npm' key: ${{ runner.os }}-${{ github.run_id }}-npm-${{ hashFiles('**/package-lock.json') }} - name: Set Node options @@ -343,7 +343,7 @@ jobs: shell: pwsh - name: Install Node dependencies - run: npm ci --cache .npm + run: npm ci - name: Run linter run: npm run lint @@ -383,7 +383,7 @@ jobs: id: npm-cache uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: - path: '.npm' + path: '~/.npm' key: ${{ runner.os }}-${{ github.run_id }}-npm-${{ hashFiles('**/package-lock.json') }} - name: Set Node options @@ -446,7 +446,7 @@ jobs: shell: pwsh - name: NPM install - run: npm ci --cache .npm + run: npm ci - name: Build if: steps.build-cache.outputs.cache-hit != 'true' @@ -513,7 +513,7 @@ jobs: id: npm-cache uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: - path: '.npm' + path: '~/.npm' key: ${{ runner.os }}-${{ github.run_id }}-npm-${{ hashFiles('**/package-lock.json') }} - name: Set Node options @@ -576,7 +576,7 @@ jobs: shell: pwsh - name: NPM install - run: npm ci --cache .npm + run: npm ci - name: Build if: steps.build-cache.outputs.cache-hit != 'true' @@ -638,7 +638,7 @@ jobs: id: npm-cache uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: - path: '.npm' + path: '~/.npm' key: ${{ runner.os }}-${{ github.run_id }}-npm-${{ hashFiles('**/package-lock.json') }} - name: Set Node options @@ -701,7 +701,7 @@ jobs: shell: pwsh - name: NPM install - run: npm ci --cache .npm + run: npm ci - name: Build if: steps.build-cache.outputs.cache-hit != 'true'