Skip to content

Commit 570e8e2

Browse files
authored
Revert (#174)
* Revert "Update script (#173)" This reverts commit 3cc8fc6. * Update nodejs
1 parent 3cc8fc6 commit 570e8e2

File tree

1 file changed

+10
-28
lines changed

1 file changed

+10
-28
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,31 @@
11
name: Deploy to GitHub Pages
2-
3-
on:
2+
on:
43
push:
54
branches:
6-
- production
7-
5+
- "production"
86
jobs:
97
build:
108
runs-on: ubuntu-22.04
11-
129
steps:
13-
- name: Checkout repository
10+
- name: Checkout Repository
1411
uses: actions/checkout@v4
1512
with:
1613
persist-credentials: false
17-
14+
- name: Enable CorePack
15+
run: corepack enable pnpm
16+
- name: Prepare CorePack
17+
run: corepack prepare pnpm@8.6.1 --activate
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: 22
2222
check-latest: true
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
23+
- name: Install dependencies
24+
run: pnpm install
25+
- name: Build using pnpm
4326
run: pnpm run build
4427
env:
4528
NITRO_PRESET: github_pages
46-
4729
- name: Upload Pages Artifact
4830
uses: actions/upload-pages-artifact@v3
4931
with:

0 commit comments

Comments
 (0)