Skip to content

Commit e94b2e4

Browse files
authored
chore: Switch to pnpm (#140)
* Switch to pnpm * Finish up * Update deps
1 parent 04ff4f6 commit e94b2e4

File tree

9 files changed

+3204
-10175
lines changed

9 files changed

+3204
-10175
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,21 @@ jobs:
66
test:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
- uses: actions/setup-node@v3
9+
- uses: mskelton/setup-pnpm@v2
1110
with:
12-
node-version: 16
13-
- run: npm ci
14-
- run: npm test
11+
node-version: '18.x'
12+
- run: pnpm install
13+
- run: pnpm test
1514

1615
publish-npm:
1716
needs: test
1817
runs-on: ubuntu-latest
1918
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-node@v3
19+
- uses: mskelton/setup-pnpm@v2
2220
with:
23-
node-version: 16
24-
registry-url: https://registry.npmjs.org/
25-
- run: npm ci
26-
- run: npm run build
27-
- run: npm publish
21+
node-version: '18.x'
22+
- run: pnpm install
23+
- run: pnpm build
24+
- run: pnpm publish
2825
env:
2926
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ jobs:
1111
matrix:
1212
node-version: [16.x, 18.x]
1313
steps:
14-
- uses: actions/checkout@v3
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v3
14+
- name: Setup Node.js ${{ matrix.node-version }}
15+
uses: mskelton/setup-pnpm@v2
1716
with:
1817
node-version: ${{ matrix.node-version }}
19-
- run: npm ci
20-
- run: npm run format:check
21-
- run: npm run lint
22-
- run: npm test
23-
- run: npm run ts
18+
- run: pnpm install
19+
- run: pnpm format:check
20+
- run: pnpm lint
21+
- run: pnpm test
22+
- run: pnpm ts

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
lib/
2+
pnpm-lock.yaml

0 commit comments

Comments
 (0)