Skip to content

Commit 7a6f166

Browse files
committed
ci: fix pnpm setup
1 parent 757b41c commit 7a6f166

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/npm-build.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# This workflow will run tests using node on every push
2-
32
name: Build package
43

54
on: push
@@ -11,11 +10,18 @@ jobs:
1110
strategy:
1211
matrix:
1312
node-version: ['18.x', '20.x', '23.x']
14-
1513
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- run: pnpm install --frozen-lockfile
21-
- run: pnpm test
14+
- uses: actions/checkout@v4
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 10
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'pnpm'
24+
- name: Install dependencies
25+
run: pnpm install
26+
- name: Run tests
27+
run: pnpm test

0 commit comments

Comments
 (0)