Skip to content

Commit fe4effb

Browse files
committed
build: fix build error
1 parent deb9388 commit fe4effb

3 files changed

Lines changed: 1262 additions & 769 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,23 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727

28-
- name: 🔧 Setup Node.js
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: "24"
32-
3328
- name: 📦 Setup pnpm
3429
uses: pnpm/action-setup@v4
3530
with:
3631
version: latest
3732
run_install: false
3833

39-
- name: 📦 Get pnpm store directory
40-
shell: bash
41-
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
42-
43-
- name: 📦 Setup pnpm cache
44-
uses: actions/cache@v4
34+
- name: 🔧 Setup Node.js
35+
uses: actions/setup-node@v4
4536
with:
46-
path: ${{ env.STORE_PATH }}
47-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
48-
restore-keys: |
49-
${{ runner.os }}-pnpm-store-
37+
node-version: 22
38+
cache: pnpm
5039

5140
- name: 📦 Install dependencies
52-
run: pnpm install --no-frozen-lockfile
41+
run: pnpm install --frozen-lockfile
5342

5443
- name: 🏗️ Build VitePress
55-
run: NODE_OPTIONS=--max-old-space-size=8192 pnpm docs:build
44+
run: pnpm docs:build
5645

5746
- name: 📤 Upload artifact
5847
uses: actions/upload-pages-artifact@v3
@@ -62,21 +51,10 @@ jobs:
6251
deploy:
6352
needs: build
6453
runs-on: ubuntu-latest
65-
6654
environment:
6755
name: github-pages
6856
url: ${{ steps.deployment.outputs.page_url }}
69-
7057
steps:
71-
- name: 🚀 Deploy to GitHub Pages
58+
- name: Deploy to GitHub Pages
7259
id: deployment
7360
uses: actions/deploy-pages@v4
74-
75-
- name: 📢 Deployment summary
76-
run: |
77-
echo "## 🚀 部署完成" >> $GITHUB_STEP_SUMMARY
78-
echo "" >> $GITHUB_STEP_SUMMARY
79-
echo "**部署地址**: [${{ steps.deployment.outputs.page_url }}](${{ steps.deployment.outputs.page_url }})" >> $GITHUB_STEP_SUMMARY
80-
echo "" >> $GITHUB_STEP_SUMMARY
81-
echo "**构建环境**: Node.js 20" >> $GITHUB_STEP_SUMMARY
82-
echo "**部署分支**: main" >> $GITHUB_STEP_SUMMARY

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@
1010
},
1111
"devDependencies": {
1212
"vitepress": "^1.6.2"
13-
},
14-
"pnpm": {
15-
"onlyBuiltDependencies": ["esbuild"]
1613
}
1714
}

0 commit comments

Comments
 (0)