Skip to content

Commit 3cc8fc6

Browse files
authored
Update script (#173)
1 parent 66534f3 commit 3cc8fc6

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,49 @@
11
name: Deploy to GitHub Pages
2-
on:
2+
3+
on:
34
push:
45
branches:
5-
- "production"
6+
- production
7+
68
jobs:
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:

0 commit comments

Comments
 (0)