File tree Expand file tree Collapse file tree 1 file changed +29
-11
lines changed
Expand file tree Collapse file tree 1 file changed +29
-11
lines changed Original file line number Diff line number Diff line change 11name : Deploy to GitHub Pages
2- on :
2+
3+ on :
34 push :
45 branches :
5- - " production"
6+ - production
7+
68jobs :
79 build :
810 runs-on : ubuntu-22.04
11+
912 steps :
10- - name : Checkout Repository
13+ - name : Checkout repository
1114 uses : actions/checkout@v4
1215 with :
1316 persist-credentials : false
14- - name : Enable CorePack
15- run : corepack enable pnpm
16- - name : Prepare CorePack
17- run : corepack prepare pnpm@8.6.1 --activate
17+
1818 - name : Set up Node.js
1919 uses : actions/setup-node@v4
2020 with :
21- node-version : " 18 "
21+ node-version : 22
2222 check-latest : true
23- - name : Install dependencies
24- run : pnpm install
25- - name : Build using pnpm
23+ cache : ' pnpm'
24+
25+ - name : Set up pnpm
26+ uses : pnpm/action-setup@v3
27+ with :
28+ version : 9
29+ run_install : false
30+
31+ - name : Clean and install dependencies
32+ run : |
33+ rm -rf node_modules pnpm-lock.yaml
34+ pnpm store prune || true
35+ pnpm install --ignore-scripts=false --no-frozen-lockfile
36+
37+ - name : Rebuild native bindings
38+ run : |
39+ pnpm rebuild oxc-parser || true
40+ pnpm rebuild sharp || true
41+
42+ - name : Build project
2643 run : pnpm run build
2744 env :
2845 NITRO_PRESET : github_pages
46+
2947 - name : Upload Pages Artifact
3048 uses : actions/upload-pages-artifact@v3
3149 with :
You can’t perform that action at this time.
0 commit comments