Skip to content

Commit

Permalink
chore(ci): cache npm cache dir between workflow execs
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Aug 30, 2021
1 parent 8408286 commit 9e7f417
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '*'
cache: 'npm'
check-latest: true
- name: Install dependencies
run: npm install --production --no-audit
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
check-latest: true
- name: Install core dependencies
run: npm ci --no-audit
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '*'
cache: 'npm'
check-latest: true
registry-url: 'https://registry.npmjs.org'
# This can be removed once npm >=7.20.0 is installed by default.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '*'
cache: 'npm'
check-latest: true
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verify-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '*'
cache: 'npm'
check-latest: true
- name: Install core dependencies
run: npm ci --no-audit
Expand Down

0 comments on commit 9e7f417

Please sign in to comment.