Skip to content

Commit d359097

Browse files
authored
chore: optimize CI pnpm setup (#42)
1 parent 863e976 commit d359097

2 files changed

Lines changed: 13 additions & 15 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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ jobs:
2323
- name: Checkout
2424
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2525

26-
- name: Install Pnpm
27-
run: |
28-
npm install -g corepack@latest --force
29-
corepack enable
30-
3126
- name: Setup Node.js
3227
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
3328
with:
3429
node-version: 24.16.0
35-
cache: 'pnpm'
30+
package-manager-cache: false
31+
32+
- name: Install Pnpm
33+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
34+
with:
35+
run_install: true
3636

37-
- name: Install Dependencies
38-
run: pnpm install && npx playwright install
37+
- name: Install Playwright
38+
run: npx playwright install
3939

4040
- name: Build Packages
4141
run: pnpm build

0 commit comments

Comments
 (0)