Skip to content

Commit

Permalink
chore(ci): 切换到pnpm
Browse files Browse the repository at this point in the history
Signed-off-by: joshua <i@joshua.su>
  • Loading branch information
sujoshua committed Nov 17, 2024
1 parent 9335b1b commit c49e489
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5,035 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ jobs:

steps:
- uses: actions/checkout@v4

# 编译
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- run: |
npm install -g pnpm
pnpm install
pnpm build
tar caf dist.tar.xz dist
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
uses: actions/checkout@v4

# 测试编译
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- run: |
npm install -g pnpm
pnpm install
pnpm build
tar caf dist.tar.xz dist
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
- uses: actions/checkout@v4

# 编译
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- run: |
npm install -g pnpm
pnpm install
pnpm build
tar caf dist.tar.xz dist
Expand Down
Loading

0 comments on commit c49e489

Please sign in to comment.