Skip to content

Commit 4ef59e0

Browse files
committed
Fix HUGO CI
1 parent 88ee809 commit 4ef59e0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
name: GitHub Pages
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
91
jobs:
102
deploy:
113
runs-on: ubuntu-22.04
@@ -26,6 +18,13 @@ jobs:
2618
with:
2719
node-version: lts/*
2820

21+
- name: Cache npm dependencies
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
26+
restore-keys: ${{ runner.os }}-npm-
27+
2928
- name: Install npm dependencies (PostCSS etc.)
3029
run: npm ci
3130

0 commit comments

Comments
 (0)