File tree Expand file tree Collapse file tree 2 files changed +40
-20
lines changed
Expand file tree Collapse file tree 2 files changed +40
-20
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ main ]
88
9+ env :
10+ NODE_VER : 22.5
11+
912jobs :
1013 lint :
1114 runs-on : ubuntu-latest
1215 steps :
1316 - uses : actions/checkout@v4
14- - name : Use Node.js 20.6.1
15- uses : actions/setup-node@v4
17+
18+ - uses : pnpm/action-setup@v4
19+ name : Install pnpm
1620 with :
17- node-version : 20.6.1
21+ run_install : false
1822
19- - name : Setup
20- run : npm i -g @antfu/ni
23+ - name : Use Node.js ${{ env.NODE_VER }}
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : ${{ env.NODE_VER }}
27+ cache : ' pnpm'
2128
2229 - name : Install
23- run : nci
30+ run : pnpm i
2431
2532 - name : Lint
26- run : nr lint
33+ run : pnpm lint
2734
2835 build :
2936 runs-on : ubuntu-latest
3037 steps :
3138 - uses : actions/checkout@v4
32- - name : Use Node.js 20.6.1
33- uses : actions/setup-node@v4
39+
40+ - uses : pnpm/action-setup@v4
41+ name : Install pnpm
3442 with :
35- node-version : 20.6.1
43+ run_install : false
3644
37- - name : Setup
38- run : npm i -g @antfu/ni
45+ - name : Use Node.js ${{ env.NODE_VER }}
46+ uses : actions/setup-node@v4
47+ with :
48+ node-version : ${{ env.NODE_VER }}
49+ cache : ' pnpm'
3950
4051 - name : Install
41- run : nci
52+ run : pnpm i
4253
4354 - name : Build
44- run : nr build
55+ run : pnpm build
Original file line number Diff line number Diff line change 77 # Allows you to run this workflow manually from the Actions tab
88 workflow_dispatch :
99
10+ env :
11+ NODE_VER : 22.5
12+
1013# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1114permissions :
1215 contents : read
@@ -28,21 +31,27 @@ jobs:
2831 uses : actions/checkout@v4
2932 with :
3033 fetch-depth : 0 # Required to calculate lastUpdated
31- - name : Install pnpm
32- uses : pnpm/action-setup@v3
34+
35+ - uses : pnpm/action-setup@v4
36+ name : Install pnpm
3337 with :
34- version : 8
35- - name : Setup Node
38+ run_install : false
39+
40+ - name : Use Node.js ${{ env.NODE_VER }}
3641 uses : actions/setup-node@v4
3742 with :
38- node-version : 20
39- cache : pnpm
43+ node-version : ${{ env.NODE_VER }}
44+ cache : ' pnpm'
45+
4046 - name : Setup Pages
4147 uses : actions/configure-pages@v4
48+
4249 - name : Install dependencies
4350 run : pnpm i
51+
4452 - name : Build with VitePress
4553 run : pnpm build
54+
4655 - name : Upload artifact
4756 uses : actions/upload-pages-artifact@v3
4857 with :
You can’t perform that action at this time.
0 commit comments