From 2a88642c088777f31803f506022a42e4b0e76aec Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Sat, 15 Oct 2022 23:28:39 +0200 Subject: [PATCH] use setup-node cache in other workflows as well --- .github/workflows/nodejs.yml | 10 +--------- .github/workflows/release.yml | 11 +---------- 2 files changed, 2 insertions(+), 19 deletions(-) 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