Skip to content

Commit 78287da

Browse files
update actions/setup-node remove actions/cache
1 parent c2cdb3a commit 78287da

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,22 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
# with:
1515
# submodules: true
1616

17-
- name: Cache node modules
18-
uses: actions/cache@v1
19-
with:
20-
path: ~/.npm
21-
key: npm-${{ hashFiles('package-lock.json') }}
22-
restore-keys: |
23-
npm-${{ hashFiles('package-lock.json') }}
24-
npm-
25-
2617
- name: Setup Hugo
27-
uses: peaceiris/actions-hugo@v2
18+
uses: peaceiris/actions-hugo@v3
2819
with:
2920
hugo-version: '0.133.0'
3021
# extended: true
3122

32-
- name: Setup Node
33-
uses: actions/setup-node@v1
23+
- uses: actions/setup-node@v4
3424
with:
35-
node-version: '18.x'
25+
node-version: 22
26+
cache: 'npm'
27+
cache-dependency-path: frontend/package-lock.json
28+
3629

3730
- name: Install Tools
3831
run: npm install -g postcss-cli autoprefixer

0 commit comments

Comments
 (0)