Skip to content

Commit aed0106

Browse files
committed
修改github action 配置文件
替换为pnpm包管理器
1 parent e4b351e commit aed0106

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,22 @@ jobs:
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v4
32+
- name: Install pnpm
33+
uses: pnpm/action-setup@v4
34+
with:
35+
version: 10
3236
- name: Set up Node
3337
uses: actions/setup-node@v4
3438
with:
3539
node-version: 20
36-
cache: 'npm'
40+
cache: 'pnpm'
3741
- name: Install dependencies
38-
run: npm ci
42+
run: pnpm install --frozen-lockfile
3943
- name: Generate Static Site
4044
env:
4145
# 微软分析 ID,在 GitHub Secrets 中
4246
MS_ANALYTICS_ID: ${{ secrets.MS_ANALYTICS_ID }}
43-
run: npm run generate
47+
run: pnpm run generate
4448
- name: Setup Pages
4549
uses: actions/configure-pages@v4
4650
- name: Upload artifact

0 commit comments

Comments
 (0)