Skip to content

Commit bfe4bbc

Browse files
committed
chore: optimize CI pnpm setup
1 parent 3e1609b commit bfe4bbc

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ jobs:
2525
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
2626
2727
- name: Install Pnpm
28-
run: npm i -g corepack@latest --force && corepack enable
29-
30-
- name: Install Node.js dependencies
31-
run: pnpm install --frozen-lockfile
28+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
29+
with:
30+
run_install: true
3231

3332
- name: Run tests
3433
run: pnpm run build && pnpm run test

.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

0 commit comments

Comments
 (0)