Skip to content

Commit

Permalink
chore: use cache built into actions/setup-node@4
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Feb 10, 2024
1 parent a5dbbd1 commit 20291ce
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- name: Install dependencies
run: |
npm ci
Expand All @@ -40,13 +34,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- name: Install dependencies
run: |
npm ci
Expand All @@ -71,13 +59,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- name: Install dependencies
run: |
npm ci
Expand Down

0 comments on commit 20291ce

Please sign in to comment.