Skip to content

Commit 61eb49d

Browse files
committed
More caching config
1 parent 7391e78 commit 61eb49d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/jekyll.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,19 @@ jobs:
4343
uses: actions/setup-node@v3
4444
with:
4545
node-version: 16
46-
cache: npm
4746
check-latest: true
48-
run: npm ci
47+
48+
- name: Cache dependencies
49+
id: cache_npm
50+
uses: actions/cache@v3
51+
with:
52+
path: ./node_modules
53+
key: modules-${{ hashFiles('package-lock.json') }}
54+
55+
- name: Install dependencies
56+
if: steps.cache_npm.outputs.cache-hit != 'true'
57+
run: npm ci --ignore-scripts
58+
4959
- name: Setup Pages
5060
id: pages
5161
uses: actions/configure-pages@v3

0 commit comments

Comments
 (0)