Skip to content

Commit 2fafcea

Browse files
committed
ci: migrate CI workflow to pnpm and node 24
1 parent 12dd8b7 commit 2fafcea

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,23 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Use Node.js 20
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: 20.x
12+
- name: Setup pnpm
13+
uses: pnpm/action-setup@v4
1614

17-
- name: Cache node modules
18-
uses: actions/cache@v3
15+
- name: Use Node.js 20
16+
uses: actions/setup-node@v4
1917
with:
20-
path: ~/.npm
21-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
18+
node-version: 24.x
19+
cache: pnpm
2220

2321
- name: Install
24-
run: npm install
22+
run: pnpm install --frozen-lockfile
2523

2624
- name: Lint spec
27-
run: npm run test
25+
run: pnpm test
2826

2927
- name: Build
30-
run: npm run build
28+
run: pnpm build
3129

3230
- name: Smoke test
3331
run: node smoke.js

0 commit comments

Comments
 (0)