Skip to content

Commit cf98b83

Browse files
committed
Upgrade actions in GH pages deploy workflow
1 parent 884eeae commit cf98b83

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/github-pages.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,23 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111

12-
strategy:
13-
matrix:
14-
node-version: [22.x]
15-
1612
steps:
17-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1814

1915
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v2
16+
uses: actions/setup-node@v4
2117
with:
22-
node-version: ${{ matrix.node-version }}
18+
node-version: 22.x
2319
cache: 'npm'
2420

2521
- name: Install
26-
run: npm install
22+
run: npm ci
2723

2824
- name: Build
2925
run: npm run example:build -- --base ./
3026

3127
- name: Deploy
32-
uses: peaceiris/actions-gh-pages@v3
28+
uses: peaceiris/actions-gh-pages@v4
3329
if: ${{ github.ref == 'refs/heads/main' }}
3430
with:
3531
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [18.x, 22.x]
18+
node-version: [20.x, 22.x]
1919
react-version: ['18.*', '19.*']
2020

2121
steps:

0 commit comments

Comments
 (0)