Skip to content

Commit 71823ca

Browse files
committed
直接使用pnpm
1 parent f05cfcf commit 71823ca

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,21 @@ jobs:
2626
- uses: actions/checkout@v4
2727

2828
- name: Use Node.js 20
29-
3029
uses: actions/setup-node@v3
3130
with:
3231
node-version: "20.x"
3332

33+
- name: Install pnpm
34+
uses: pnpm/action-setup@v3
35+
with:
36+
version: 8
37+
3438
- name: Build
3539
env:
3640
NODE_ENV: production
3741
run: |
38-
npm install
39-
npm run build
42+
pnpm install
43+
pnpm run build
4044
- name: Setup Pages
4145
uses: actions/configure-pages@v5
4246
- name: Upload artifact

0 commit comments

Comments
 (0)