Skip to content

Commit 80c5e14

Browse files
author
老曼巴
committed
修复工作流
1 parent 78d41d1 commit 80c5e14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version: '20' # 根据你的项目需求调整版本
33-
cache: 'npm' # 或 'yarn' / 'pnpm'
33+
cache: 'pnpm' # 或 'yarn' / 'pnpm'
3434

3535
# 3. 安装依赖
3636
- name: Install dependencies
37-
run: npm install # 或 npm install / yarn install / pnpm install
37+
run: pnpm i # 或 npm install / yarn install / pnpm install
3838

3939
# 4. 构建项目
4040
- name: Build
41-
run: npm run build # 确保 package.json 中有 build 脚本
41+
run: pnpm build # 确保 package.json 中有 build 脚本
4242

4343
# 5. 配置 GitHub Pages
4444
- name: Setup Pages

0 commit comments

Comments
 (0)