From 9e3516a27466084a93c40683816c6646d22e7ca4 Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Sun, 12 Jun 2022 11:32:54 -0400 Subject: [PATCH] chore: replace custom cache step with config The `actions/setup/node@v2` introduced support for configuring cache for npm. Since we use defaults, no changes are necessary other than setting the installer type. Refs: https://github.com/actions/setup-node/pull/272 Signed-off-by: Mike Fiedler --- .github/workflows/ci.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4ddd647cea3..0d660de54f2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,19 +82,7 @@ jobs: if: ${{ matrix.needs-node }} with: node-version: 14.15.5 - - name: Cache Node dependencies - if: ${{ matrix.needs-node }} - uses: actions/cache@v2 - env: - cache-name: warehouse-cache-npm - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}- - ${{ runner.os }}-build-${{ github.job }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + cache: 'npm' - name: Install Node dependencies if: ${{ matrix.needs-node }} run: npm ci