Skip to content

Commit cb34bcc

Browse files
committed
Cache npm environment in GitHub action
1 parent cf9017a commit cb34bcc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy-github-pages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ jobs:
1313
uses: actions/setup-node@v2
1414
with:
1515
node-version: "16"
16+
- name: Cache npm environment
17+
uses: actions/cache@v2
18+
with:
19+
path: ~/.npm
20+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21+
restore-keys: |
22+
${{ runner.os }}-node-
1623
- name: Install dependencies
1724
run: npm ci
1825
- name: Verify that snippets were embedded

0 commit comments

Comments
 (0)