Skip to content

Commit 88258de

Browse files
committed
update ci
1 parent 0597889 commit 88258de

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v5
2222
- uses: actions/configure-pages@v5
23+
- uses: pnpm/action-setup@v4
2324
- uses: actions/setup-node@v5
2425
with:
2526
node-version: 24
26-
cache: npm
27-
- run: npm ci
28-
- run: npm run build --workspaces --if-present
27+
cache: pnpm
28+
- run: pnpm install --lockfile-only
29+
- run: pnpm run --recursive build
2930
- run: rm -rf node_modules
3031
- uses: actions/upload-pages-artifact@v4
3132
with:

.github/workflows/check.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ jobs:
66

77
steps:
88
- uses: actions/checkout@v5
9+
- uses: pnpm/action-setup@v4
910
- uses: actions/setup-node@v5
1011
with:
1112
node-version: 24
12-
cache: npm
13-
- run: npm install
14-
- run: npm run build
15-
- run: npm run check --workspaces --if-present
13+
cache: pnpm
14+
- run: pnpm install --lockfile-only
15+
- run: pnpm run build
16+
- run: pnpm run --recursive check

.github/workflows/size.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v5
13+
- uses: pnpm/action-setup@v4
1314
- uses: actions/setup-node@v5
1415
with:
1516
node-version: 24
16-
cache: npm
17+
cache: pnpm
1718
- uses: preactjs/compressed-size-action@v2
1819
with:
1920
compression: brotli

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v5
12+
- uses: pnpm/action-setup@v4
1213
- uses: actions/setup-node@v5
1314
with:
1415
node-version: 24
15-
cache: npm
16-
- run: npm ci
17-
- run: npm run build
16+
cache: pnpm
17+
- run: pnpm install --lockfile-only
18+
- run: pnpm run build
1819
- name: Disable AppArmor for chromium
1920
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns || true
20-
- run: npm run test
21+
- run: pnpm run test
2122
- if: always()
2223
uses: coverallsapp/github-action@v2
2324
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"format": "prettier --write . --cache",
1414
"check": "tsc",
1515
"test": "node scripts/test/main.ts 'src/{client,server}/tests/*.test.ts'",
16-
"test:prod": "npm run test -- --prod",
16+
"test:prod": "pnpm run test -- --prod",
1717
"bench": "node scripts/test/main.ts --prod --bench 'src/{client,server}/tests/bench.ts'"
1818
},
1919
"devDependencies": {

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ packages:
66
catalog:
77
typescript: ~5.8
88

9+
includeWorkspaceRoot: true

0 commit comments

Comments
 (0)