Skip to content

Commit ca5f239

Browse files
committed
chore: use pnpm as package manager
1 parent 2130719 commit ca5f239

File tree

5 files changed

+11415
-16
lines changed

5 files changed

+11415
-16
lines changed

.github/workflows/build-and-deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717

1818
- name: Install and Build 🔧
1919
run: |
20-
npm ci
21-
npm run build
20+
pnpm install --frozen-lockfile
21+
pnpm build
2222
2323
- name: Deploy 🚀
2424
uses: JamesIves/github-pages-deploy-action@v4
@@ -33,10 +33,10 @@ jobs:
3333
uses: actions/checkout@v4
3434

3535
- name: Install
36-
run: npm ci
36+
run: pnpm install --frozen-lockfile
3737

3838
- name: test
39-
run: npm run test -- --watch=false --browsers=ChromeHeadless
39+
run: pnpm test -- --watch=false --browsers=ChromeHeadless
4040

4141
- name: Upload coverage reports to Codecov
4242
uses: codecov/codecov-action@v5

.github/workflows/verify-build.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
ref: ${{ github.event.pull_request.head.sha }}
1616

1717
- name: install
18-
run: npm ci
18+
run: pnpm install --frozen-lockfile
1919

2020
- name: build
21-
run: npm run build
21+
run: pnpm build
2222

2323
lint:
2424
runs-on: ubuntu-latest
@@ -29,10 +29,10 @@ jobs:
2929
ref: ${{ github.event.pull_request.head.sha }}
3030

3131
- name: install
32-
run: npm ci
32+
run: pnpm install --frozen-lockfile
3333

3434
- name: lint
35-
run: npm run lint
35+
run: pnpm lint
3636

3737
test-chrome:
3838
runs-on: ubuntu-latest
@@ -43,10 +43,10 @@ jobs:
4343
ref: ${{ github.event.pull_request.head.sha }}
4444

4545
- name: install
46-
run: npm ci
46+
run: pnpm install --frozen-lockfile
4747

4848
- name: test
49-
run: npm run test -- --watch=false --browsers=ChromeHeadless
49+
run: pnpm test -- --watch=false --browsers=ChromeHeadless
5050

5151
- name: Upload coverage reports to Codecov
5252
uses: codecov/codecov-action@v5
@@ -62,10 +62,10 @@ jobs:
6262
ref: ${{ github.event.pull_request.head.sha }}
6363

6464
- name: install
65-
run: npm ci
65+
run: pnpm install --frozen-lockfile
6666

6767
- name: test
68-
run: npm run test -- --watch=false --browsers=FirefoxHeadless
68+
run: pnpm test -- --watch=false --browsers=FirefoxHeadless
6969

7070
test-safari:
7171
runs-on: macos-14
@@ -76,10 +76,10 @@ jobs:
7676
ref: ${{ github.event.pull_request.head.sha }}
7777

7878
- name: install
79-
run: npm ci
79+
run: pnpm install --frozen-lockfile
8080

8181
- name: test
82-
run: npm run test -- --watch=false --browsers=SafariNative
82+
run: pnpm test -- --watch=false --browsers=SafariNative
8383

8484
prettier:
8585
runs-on: ubuntu-latest
@@ -90,7 +90,7 @@ jobs:
9090
ref: ${{ github.event.pull_request.head.sha }}
9191

9292
- name: install
93-
run: npm ci
93+
run: pnpm install --frozen-lockfile
9494

9595
- name: prettier
9696
run: npx prettier . --check

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@
5656
"prettier-plugin-organize-imports": "^4.0.0",
5757
"typescript": "~5.6.0",
5858
"typescript-eslint": "^8.0.0"
59-
}
59+
},
60+
"packageManager": "[email protected]"
6061
}

0 commit comments

Comments
 (0)