Skip to content

Commit 70a83b2

Browse files
author
Markson Hon
committed
ci: update modules
1 parent eec02e1 commit 70a83b2

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,20 @@ jobs:
2525
if: "!(github.event_name == 'push' && contains(github.event.head_commit.message, '[skip ci]'))"
2626
steps:
2727
- name: Check out project
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31-
31+
3232
- name: Set up Node.js
33-
uses: actions/setup-node@v2
33+
uses: actions/setup-node@v6
34+
with:
35+
node-version: '16'
3436

3537
- name: Get yarn cache directory path
3638
id: yarn-cache-dir-path
3739
run: echo "::set-output name=dir::$(yarn cache dir)"
3840

39-
- uses: actions/cache@v2
41+
- uses: actions/cache@v4
4042
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4143
with:
4244
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -61,7 +63,7 @@ jobs:
6163
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
6264
id: pages
6365
uses: actions/configure-pages@v2
64-
66+
6567
- name: Upload artifact
6668
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
6769
uses: actions/upload-pages-artifact@v1
@@ -79,4 +81,4 @@ jobs:
7981
steps:
8082
- name: Deploy to GitHub Pages
8183
id: deployment
82-
uses: actions/deploy-pages@v1
84+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)