Skip to content

Commit 1ef638c

Browse files
authored
chore: optimize CI pnpm setup (#38)
1 parent fd5df45 commit 1ef638c

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ jobs:
2424
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2525
with:
2626
node-version: 24.16.0
27+
package-manager-cache: false
2728

28-
- name: Setup Pnpm
29-
run: |
30-
npm install -g corepack@latest --force
31-
corepack enable
32-
33-
- name: Install Dependencies
34-
run: pnpm i
29+
- name: Install Pnpm
30+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
31+
with:
32+
run_install: true
3533

3634
- name: Build Packages
3735
run: pnpm build

.github/workflows/test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@ jobs:
2323
- name: Checkout
2424
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2525

26-
- name: Install Pnpm
27-
run: corepack enable
28-
2926
- name: Setup Node.js
3027
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
3128
with:
3229
node-version: 24.16.0
33-
cache: 'pnpm'
30+
package-manager-cache: false
3431

35-
- name: Install Dependencies
36-
run: pnpm install
32+
- name: Install Pnpm
33+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
34+
with:
35+
run_install: true
3736

3837
- name: Build Packages
3938
run: pnpm build

0 commit comments

Comments
 (0)