Skip to content

Commit 65e7bc2

Browse files
committed
Use pnpm for Node build
1 parent d4f1823 commit 65e7bc2

File tree

3 files changed

+488
-3
lines changed

3 files changed

+488
-3
lines changed

.github/workflows/build-node.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: "22"
25+
- name: Enable pnpm
26+
if: steps.detect.outputs.present == 'true'
27+
run: |
28+
corepack enable
29+
corepack prepare [email protected] --activate
2530
- name: Test
2631
if: steps.detect.outputs.present == 'true'
2732
run: |
2833
cd node
29-
npm install --no-package-lock
30-
npm test
34+
pnpm install --frozen-lockfile
35+
pnpm test
3136
- name: Upload coverage
3237
if: steps.detect.outputs.present == 'true'
3338
uses: codecov/codecov-action@v4

node/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"type": "commonjs",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7+
"packageManager": "[email protected]",
78
"scripts": {
89
"build": "tsc -p tsconfig.json",
9-
"test": "npm run build && c8 --reporter=lcov --reporter=text node --test"
10+
"test": "tsc -p tsconfig.json && c8 --reporter=lcov --reporter=text node --test"
1011
},
1112
"devDependencies": {
1213
"c8": "9.1.0",

0 commit comments

Comments
 (0)