File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,16 +46,19 @@ jobs:
4646 - name : Install Node.js
4747 uses : actions/setup-node@v4
4848 with :
49- node-version : 20
49+ node-version : 22
5050 cache : " pnpm"
5151
5252 - name : Install Dependencies
5353 run : pnpm install
5454
5555 - name : Run Prebuild Script
56+ id : prebuild
5657 run : pnpm prebuild
58+ continue-on-error : true
5759
5860 - name : Build the Project
61+ if : steps.prebuild.outcome == 'success'
5962 env :
6063 NODE_ENV : " production"
6164 run : pnpm build
@@ -64,15 +67,18 @@ jobs:
6467
6568 # 👇 Deploy steps
6669 - name : Setup Pages
70+ if : steps.prebuild.outcome == 'success'
6771 uses : actions/configure-pages@v5
6872
6973 - name : Upload artifact
74+ if : steps.prebuild.outcome == 'success'
7075 uses : actions/upload-pages-artifact@v3
7176 with :
7277 # 👇 Specify build output path
7378 path : out
7479
7580 - name : Deploy to GitHub Pages
81+ if : steps.prebuild.outcome == 'success'
7682 id : deployment
7783 uses : actions/deploy-pages@v4
7884 # 👆 Deploy steps
Original file line number Diff line number Diff line change @@ -31,29 +31,19 @@ jobs:
3131 - name : Install Node.js
3232 uses : actions/setup-node@v4
3333 with :
34- node-version : 20
34+ node-version : 22
3535 cache : " pnpm"
3636
37- - name : Get pnpm store directory
38- shell : bash
39- run : |
40- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
41-
42- - uses : actions/cache@v4
43- name : Setup pnpm cache
44- with :
45- path : ${{ env.STORE_PATH }}
46- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47- restore-keys : |
48- ${{ runner.os }}-pnpm-store-
49-
5037 - name : Install Dependencies
5138 run : pnpm install
5239
5340 - name : Run Prebuild Script
41+ id : prebuild
5442 run : pnpm prebuild
43+ continue-on-error : true
5544
5645 - name : Build the Project
46+ if : steps.prebuild.outcome == 'success'
5747 env :
5848 NODE_ENV : " production"
5949 run : pnpm build
Original file line number Diff line number Diff line change 1- v18
1+ v22
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ const main = async () => {
104104 console . log ( "Data generation complete." ) ;
105105 } catch ( e ) {
106106 console . error ( e ) ;
107+ process . exit ( 1 ) ;
107108 }
108109} ;
109110
Original file line number Diff line number Diff line change 3636 "@next/eslint-plugin-next" : " ^14.1.1" ,
3737 "@types/jest" : " ^29.5.12" ,
3838 "@types/mdx" : " ^2.0.13" ,
39- "@types/node" : " 20.14.9 " ,
39+ "@types/node" : " ^24.3.0 " ,
4040 "@types/react" : " 18.3.3" ,
4141 "@types/react-dom" : " 18.3.0" ,
4242 "@types/react-infinite-scroller" : " ^1.2.5" ,
You can’t perform that action at this time.
0 commit comments