Skip to content

Commit 860573f

Browse files
committed
chore: 更新 GitHub Actions 配置,指定 Node.js 版本为 20,并修正部署路径为 dist
1 parent 9cbd8c3 commit 860573f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/v2-site.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@ jobs:
1212
deploy:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 15
15-
strategy:
16-
matrix:
17-
node-version: [latest]
1815
steps:
1916
- name: checkout code repository
2017
uses: actions/checkout@v3
2118
with:
2219
fetch-depth: 0
2320
- name: Switch to site branch
2421
run: git checkout -b gh-pages
25-
- name: Use Node.js ${{ matrix.node-version }}
22+
- name: Use Node.js 20
2623
uses: actions/setup-node@v3
2724
with:
28-
node-version: ${{ matrix.node-version }}
25+
node-version: 20
2926
- name: install pnpm
3027
run: npm i pnpm@latest -g
3128
- name: Setup npmrc

site/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"build": "cross-env NODE_OPTIONS=--max_old_space_size=12288 dumi build",
2626
"develop": "cross-env DUMI=true dumi dev",
27-
"deploy": "pnpm run build && gh-pages -d public",
27+
"deploy": "pnpm run build && gh-pages -d dist",
2828
"start": "cross-env NODE_OPTIONS=--max_old_space_size=8192 pnpm run develop"
2929
},
3030
"devDependencies": {

0 commit comments

Comments
 (0)