Skip to content

Commit 9e3516a

Browse files
committed
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: actions/setup-node#272 Signed-off-by: Mike Fiedler <[email protected]>
1 parent 5978f88 commit 9e3516a

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,7 @@ jobs:
8282
if: ${{ matrix.needs-node }}
8383
with:
8484
node-version: 14.15.5
85-
- name: Cache Node dependencies
86-
if: ${{ matrix.needs-node }}
87-
uses: actions/cache@v2
88-
env:
89-
cache-name: warehouse-cache-npm
90-
with:
91-
path: ~/.npm
92-
key: ${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
93-
restore-keys: |
94-
${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}-
95-
${{ runner.os }}-build-${{ github.job }}-
96-
${{ runner.os }}-build-
97-
${{ runner.os }}-
85+
cache: 'npm'
9886
- name: Install Node dependencies
9987
if: ${{ matrix.needs-node }}
10088
run: npm ci

0 commit comments

Comments
 (0)