Skip to content

Commit 43326eb

Browse files
authored
ci: detect pnpm from package.json (#25)
1 parent d665151 commit 43326eb

File tree

4 files changed

+1117
-1442
lines changed

4 files changed

+1117
-1442
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: CI
2+
23
on:
34
push:
45
branches:
56
- main
67
pull_request:
8+
79
jobs:
810
test:
911
name: Test
@@ -12,20 +14,24 @@ jobs:
1214
matrix:
1315
node-version: [18]
1416
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
1520
- uses: actions/setup-node@v4
1621
with:
1722
node-version: ${{ matrix.node-version }}
23+
1824
- name: Setup
1925
uses: pnpm/action-setup@v4
20-
with:
21-
version: 8
22-
- name: Checkout
23-
uses: actions/checkout@v4
26+
2427
- name: Install dependencies
2528
run: pnpm install
29+
2630
- name: Build
2731
run: pnpm build
32+
2833
- name: Lint
2934
run: pnpm lint
35+
3036
- name: Test
3137
run: pnpm test

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pnpm 9.4.0
1+
pnpm 8.15.9
22
nodejs 18.20.3

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
],
1111
"author": "Dominic Elm",
1212
"main": "dist/index.js",
13+
"packageManager": "[email protected]",
1314
"scripts": {
1415
"build": "rm -rf dist && tsc -b",
1516
"test": "vitest run",

0 commit comments

Comments
 (0)