Skip to content

Commit

Permalink
Add step to main Github actions workflow which will cache node module…
Browse files Browse the repository at this point in the history
…s files
  • Loading branch information
rafcik committed Jun 22, 2020
1 parent 7c5c577 commit c217345
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci

Expand Down

0 comments on commit c217345

Please sign in to comment.