Skip to content

Commit f5204e8

Browse files
authored
chore: switch from npm to pnpm (#360)
* switch from npm to pnpm * fix(ci): add packageManager field with [email protected] * fix(ci): remove redundant --coverage flag for pnpm compatibility
1 parent c94c08e commit f5204e8

7 files changed

Lines changed: 5465 additions & 8197 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,23 @@ jobs:
1919
node: [18, 20, 22]
2020
steps:
2121
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
2223
- uses: actions/setup-node@v4
2324
with:
2425
node-version: ${{ matrix.node }}
26+
cache: 'pnpm'
2527

2628
- name: Install Dependencies
27-
run: |
28-
npm install
29+
run: pnpm install
2930

3031
- name: Prettier
31-
run: |
32-
npm run prettier
32+
run: pnpm run prettier
3333

3434
- name: Lint
35-
run: |
36-
npm run lint
35+
run: pnpm run lint
3736

3837
- name: Build
39-
run: |
40-
npm run build
38+
run: pnpm run build
4139

4240
- name: Test
43-
run: |
44-
npm run test -- --coverage
41+
run: pnpm run test

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,23 @@ jobs:
2020
id-token: write
2121
steps:
2222
- uses: actions/checkout@v4
23+
- uses: pnpm/action-setup@v4
2324
- uses: actions/setup-node@v4
2425
with:
2526
node-version: 24
2627
registry-url: 'https://registry.npmjs.org'
28+
cache: 'pnpm'
2729

2830
- name: Install Dependencies
29-
run: |
30-
npm install
31+
run: pnpm install
3132

3233
- name: Build project
33-
run: |
34-
npm run build
34+
run: pnpm run build
3535

3636
- name: Push Release
3737
if: ${{ !github.event.release.prerelease }}
38-
run: |
39-
npm publish --tag latest --access=public --provenance
38+
run: pnpm publish --tag latest --access=public --provenance --no-git-checks
4039

4140
- name: Push Pre-Release
4241
if: ${{ github.event.release.prerelease }}
43-
run: |
44-
npm publish --tag next --access=public --provenance
42+
run: pnpm publish --tag next --access=public --provenance --no-git-checks

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
dist
44
coverage
55
.idea
6+
package-lock.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The AuthKit library for Next.js provides convenient helpers for authentication a
99
Install the package with:
1010

1111
```
12-
npm i @workos-inc/authkit-nextjs
12+
pnpm i @workos-inc/authkit-nextjs
1313
```
1414

1515
or

0 commit comments

Comments
 (0)