Skip to content

Commit 51cc1c7

Browse files
committed
chore(ci): 切换到pnpm
Signed-off-by: joshua <[email protected]>
1 parent 9335b1b commit 51cc1c7

File tree

4 files changed

+5
-5035
lines changed

4 files changed

+5
-5035
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14+
15+
# 编译
16+
- uses: pnpm/action-setup@v4
1417
- name: Use Node.js
1518
uses: actions/setup-node@v4
1619
with:
1720
node-version: 22
1821
- run: |
19-
npm install -g pnpm
2022
pnpm install
2123
pnpm build
2224
tar caf dist.tar.xz dist

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
# 测试编译
16+
- uses: pnpm/action-setup@v4
1617
- name: Use Node.js
1718
uses: actions/setup-node@v4
1819
with:
1920
node-version: 22
2021
- run: |
21-
npm install -g pnpm
2222
pnpm install
2323
pnpm build
2424
tar caf dist.tar.xz dist

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
- uses: actions/checkout@v4
1515

1616
# 编译
17+
- uses: pnpm/action-setup@v4
1718
- name: Use Node.js
1819
uses: actions/setup-node@v4
1920
with:
2021
node-version: 22
2122
- run: |
22-
npm install -g pnpm
2323
pnpm install
2424
pnpm build
2525
tar caf dist.tar.xz dist

0 commit comments

Comments
 (0)