Skip to content

Commit

Permalink
update cach github action in ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtil committed May 27, 2020
1 parent 8ebb3b6 commit 71ccb1c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ jobs:
with:
node-version: 12
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-node-
- name: Install Dependencies
run: npm install
Expand Down

0 comments on commit 71ccb1c

Please sign in to comment.