Skip to content

Commit

Permalink
Merge pull request #388 from Parsely/fix/github-actions-caching
Browse files Browse the repository at this point in the history
Using npm caching on GitHub Actions
  • Loading branch information
pauarge authored Sep 21, 2021
2 parents cf54b1f + 0f59ce7 commit fb5329e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

# See: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: "${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}"
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
cache: npm

- name: Install JavaScript dependencies
run: npm ci
Expand Down

0 comments on commit fb5329e

Please sign in to comment.