diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 874676cf1..4d06c5f49 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -26,17 +26,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + cache: 'npm' - - name: Use cached node_modules - id: cache - uses: actions/cache@v3 - with: - path: node_modules - key: nodeModules-${{ hashFiles('./package-lock.json') }}-${{ matrix.node-version }} - restore-keys: | - nodeModules- - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' run: npm install env: CI: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 629678541..102c3c553 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,18 +23,9 @@ jobs: with: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' - - - name: Use cached node_modules - id: cache - uses: actions/cache@v3 - with: - path: node_modules - key: nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }} - restore-keys: | - nodeModules- + cache: 'npm' - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' run: npm install env: CI: true