Skip to content

Commit 1be8937

Browse files
committed
chore(deps): switch to pnpm package manager
1 parent 970ec2e commit 1be8937

File tree

4 files changed

+10990
-18250
lines changed

4 files changed

+10990
-18250
lines changed

.github/workflows/verify-build.yml

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,19 @@ jobs:
1414
with:
1515
ref: ${{ github.event.pull_request.head.sha }}
1616

17+
- uses: pnpm/action-setup@v4
18+
name: Install pnpm
19+
with:
20+
run_install: false
21+
1722
- name: install
18-
run: npm ci
23+
run: pnpm install --frozen-lockfile
1924

2025
- name: build lib
21-
run: npm run lib
26+
run: pnpm lib
2227

2328
- name: build demo
24-
run: npm run build
29+
run: pnpm build
2530

2631
lint:
2732
runs-on: ubuntu-latest
@@ -31,11 +36,16 @@ jobs:
3136
with:
3237
ref: ${{ github.event.pull_request.head.sha }}
3338

39+
- uses: pnpm/action-setup@v4
40+
name: Install pnpm
41+
with:
42+
run_install: false
43+
3444
- name: install
35-
run: npm ci
45+
run: pnpm install --frozen-lockfile
3646

3747
- name: lint
38-
run: npm run lint
48+
run: pnpm lint
3949

4050
test-chrome:
4151
runs-on: ubuntu-latest
@@ -45,11 +55,16 @@ jobs:
4555
with:
4656
ref: ${{ github.event.pull_request.head.sha }}
4757

58+
- uses: pnpm/action-setup@v4
59+
name: Install pnpm
60+
with:
61+
run_install: false
62+
4863
- name: install
49-
run: npm ci
64+
run: pnpm install --frozen-lockfile
5065

5166
- name: test
52-
run: npm run test -- --watch=false --browsers=ChromeHeadless
67+
run: pnpm test --watch=false --browsers=ChromeHeadless
5368

5469
test-firefox:
5570
runs-on: ubuntu-latest
@@ -59,11 +74,16 @@ jobs:
5974
with:
6075
ref: ${{ github.event.pull_request.head.sha }}
6176

77+
- uses: pnpm/action-setup@v4
78+
name: Install pnpm
79+
with:
80+
run_install: false
81+
6282
- name: install
63-
run: npm ci
83+
run: pnpm install --frozen-lockfile
6484

6585
- name: test
66-
run: npm run test -- --watch=false --browsers=FirefoxHeadless
86+
run: pnpm test --watch=false --browsers=FirefoxHeadless
6787

6888
test-safari:
6989
runs-on: macos-latest
@@ -73,11 +93,16 @@ jobs:
7393
with:
7494
ref: ${{ github.event.pull_request.head.sha }}
7595

96+
- uses: pnpm/action-setup@v4
97+
name: Install pnpm
98+
with:
99+
run_install: false
100+
76101
- name: install
77-
run: npm ci
102+
run: pnpm install --frozen-lockfile
78103

79104
- name: test
80-
run: npm run test -- --watch=false --browsers=SafariNative
105+
run: pnpm test -- --watch=false --browsers=SafariNative
81106

82107
prettier:
83108
runs-on: ubuntu-latest
@@ -87,8 +112,13 @@ jobs:
87112
with:
88113
ref: ${{ github.event.pull_request.head.sha }}
89114

115+
- uses: pnpm/action-setup@v4
116+
name: Install pnpm
117+
with:
118+
run_install: false
119+
90120
- name: install
91-
run: npm ci
121+
run: pnpm install --frozen-lockfile
92122

93123
- name: prettier
94-
run: npm run prettier-check
124+
run: pnpm prettier-check

0 commit comments

Comments
 (0)