Skip to content

Commit a4678e7

Browse files
committed
Update GitHub Actions CI to use pnpm
Update CI workflow to use pnpm instead of yarn for dependency management. Changes: - Add pnpm/action-setup@v4 step to install pnpm in both test and lint jobs - Change cache from 'yarn' to 'pnpm' in setup-node action - Set pnpm version to 9 for CI stability - Keep existing make commands (already updated to use pnpm) The workflow will now: 1. Install pnpm v9 2. Setup Node.js with pnpm caching 3. Run make install (which uses pnpm) 4. Run tests, build, and lint with pnpm
1 parent f010480 commit a4678e7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121

22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 9
26+
2227
- name: Setup Node.js ${{ matrix.node-version }}
2328
uses: actions/setup-node@v4
2429
with:
2530
node-version: ${{ matrix.node-version }}
26-
cache: 'yarn'
31+
cache: 'pnpm'
2732

2833
- name: Install dependencies
2934
run: make install
@@ -50,11 +55,16 @@ jobs:
5055
- name: Checkout code
5156
uses: actions/checkout@v4
5257

58+
- name: Install pnpm
59+
uses: pnpm/action-setup@v4
60+
with:
61+
version: 9
62+
5363
- name: Setup Node.js
5464
uses: actions/setup-node@v4
5565
with:
5666
node-version: 20.x
57-
cache: 'yarn'
67+
cache: 'pnpm'
5868

5969
- name: Install dependencies
6070
run: make install

0 commit comments

Comments
 (0)