Skip to content

Commit c592ec4

Browse files
authored
Switch to pnpm package manager (#4)
* Switch to pnpm * Update CI to use pnpm * Add node 20, remove 14 from test matrix
1 parent ddb22de commit c592ec4

File tree

4 files changed

+1463
-5411
lines changed

4 files changed

+1463
-5411
lines changed

.github/workflows/test.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,22 @@ jobs:
1010
strategy:
1111
matrix:
1212
node-version:
13+
- 20
1314
- 18
1415
- 16
15-
- 14
1616
name: Node.js ${{ matrix.node-version }}
1717
steps:
1818
- name: Checkout the repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
20+
# Pulls version from packageManager key in package.json
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v2
2023
- name: Install Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2225
with:
2326
node-version: ${{ matrix.node-version }}
27+
cache: "pnpm"
2428
- name: Install dependencies
25-
uses: bahmutov/npm-install@v1
29+
run: pnpm install
2630
- name: Run unit tests
27-
run: npm test
31+
run: pnpm test

0 commit comments

Comments
 (0)