Skip to content

Commit 3a1ff7f

Browse files
authored
fix: tests, pnpm (#4)
1 parent 9b89443 commit 3a1ff7f

File tree

11 files changed

+2094
-1509
lines changed

11 files changed

+2094
-1509
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ jobs:
1212
node-version: [20, 22, 24]
1313
steps:
1414
- uses: actions/checkout@v4
15+
- uses: pnpm/action-setup@v4
1516
- uses: actions/setup-node@v4
1617
with:
1718
node-version: ${{ matrix.node-version }}
18-
- run: npm ci
19-
- run: npm run typecheck
20-
- run: npm run build
19+
cache: "pnpm"
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm run typecheck
22+
- run: pnpm run test
23+
- run: pnpm run build

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17+
- uses: pnpm/action-setup@v4
18+
1719
- uses: actions/setup-node@v4
1820
with:
1921
node-version: 24
20-
cache: "npm"
22+
cache: "pnpm"
2123
registry-url: https://registry.npmjs.org
2224

23-
- run: npm ci
24-
- run: npm run typecheck
25-
- run: npm run build
25+
- run: pnpm install --frozen-lockfile
26+
- run: pnpm run typecheck
27+
- run: pnpm run test
28+
- run: pnpm run build
2629

2730
- name: Publish to NPM
28-
run: npm publish --provenance --access public
31+
run: pnpm publish --provenance --access public --no-git-checks
2932
env:
3033
NODE_AUTH_TOKEN: ${{ secrets.ONECLI_NPM_TOKEN }}

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
## Installation
3030

3131
```bash
32-
npm install @onecli-sdk/node
32+
pnpm add @onecli-sdk/node
3333
```
3434

3535
## Requirements
@@ -208,10 +208,11 @@ OneCLI acts as a MITM proxy for containerized agents. When a container makes HTT
208208
## Development
209209

210210
```bash
211-
npm install # Install dependencies
212-
npm run build # Build CJS + ESM
213-
npm run typecheck # Type-check without emitting
214-
npm run dev # Watch mode
211+
pnpm install # Install dependencies
212+
pnpm run build # Build CJS + ESM
213+
pnpm run typecheck # Type-check without emitting
214+
pnpm run test # Run tests
215+
pnpm run dev # Watch mode
215216
```
216217

217218
## License

0 commit comments

Comments
 (0)