Skip to content

Commit ef87936

Browse files
committed
Add dependencies cache action
1 parent e726a17 commit ef87936

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ jobs:
88
- name: Checkout
99
uses: actions/checkout@v1
1010

11+
- uses: actions/cache@v1
12+
id: cache
13+
with:
14+
path: ~/.npm
15+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
16+
restore-keys: |
17+
${{ runner.os }}-node-
18+
1119
- name: Install
20+
if: steps.cache.outputs.cache-hit != 'true'
1221
run: npm install
1322

1423
- name: Test

0 commit comments

Comments
 (0)