Skip to content

Commit 9abc27e

Browse files
authored
chore: optimize CI pnpm setup (#124)
1 parent f65bb75 commit 9abc27e

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
@@ -20,17 +20,16 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2222

23-
- name: Install Pnpm
24-
run: npm i -g corepack@latest --force && corepack enable
25-
2623
- name: Setup Node.js
2724
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2825
with:
2926
node-version: 24.16.0
30-
cache: 'pnpm'
27+
package-manager-cache: false
3128

32-
- name: Install Dependencies
33-
run: pnpm install
29+
- name: Install Pnpm
30+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
31+
with:
32+
run_install: true
3433

3534
- name: Run Lint
3635
run: pnpm run lint

0 commit comments

Comments
 (0)