We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d41d1 commit 80c5e14Copy full SHA for 80c5e14
.github/workflows/deploy.yml
@@ -30,15 +30,15 @@ jobs:
30
uses: actions/setup-node@v4
31
with:
32
node-version: '20' # 根据你的项目需求调整版本
33
- cache: 'npm' # 或 'yarn' / 'pnpm'
+ cache: 'pnpm' # 或 'yarn' / 'pnpm'
34
35
# 3. 安装依赖
36
- name: Install dependencies
37
- run: npm install # 或 npm install / yarn install / pnpm install
+ run: pnpm i # 或 npm install / yarn install / pnpm install
38
39
# 4. 构建项目
40
- name: Build
41
- run: npm run build # 确保 package.json 中有 build 脚本
+ run: pnpm build # 确保 package.json 中有 build 脚本
42
43
# 5. 配置 GitHub Pages
44
- name: Setup Pages
0 commit comments