Skip to content

Commit

Permalink
use built-in cache with setup-node (#4006)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Jan 11, 2022
1 parent 8e14e83 commit fc2c57f
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/npm-shrinkwrap.json') }}
cache: npm
cache-dependency-path: npm-shrinkwrap.json

- run: npm i -g npm@8
- run: npm ci
Expand All @@ -46,12 +42,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/npm-shrinkwrap.json') }}
cache: npm
cache-dependency-path: npm-shrinkwrap.json

- run: npm i -g npm@8
- run: npm ci
Expand Down Expand Up @@ -87,12 +79,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/npm-shrinkwrap.json') }}
cache: npm
cache-dependency-path: npm-shrinkwrap.json

- name: Cache firebase emulators
uses: actions/cache@v2
Expand Down

0 comments on commit fc2c57f

Please sign in to comment.