Skip to content

Commit

Permalink
CI: Cache node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinsoftware authored Jun 19, 2020
1 parent 4f029d0 commit a9d799b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/dotnet-core-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jobs:
with:
fetch-depth: 0

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
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 }}-
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
Expand Down

0 comments on commit a9d799b

Please sign in to comment.