Skip to content

Commit 63dd88f

Browse files
committed
update ci
1 parent 0597889 commit 63dd88f

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
- uses: actions/setup-node@v5
2424
with:
2525
node-version: 24
26-
cache: npm
27-
- run: npm ci
28-
- run: npm run build --workspaces --if-present
26+
cache: pnpm
27+
- run: pnpm install --lockfile-only
28+
- run: pnpm run --recursive build
2929
- run: rm -rf node_modules
3030
- uses: actions/upload-pages-artifact@v4
3131
with:

.github/workflows/check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/setup-node@v5
1010
with:
1111
node-version: 24
12-
cache: npm
13-
- run: npm install
14-
- run: npm run build
15-
- run: npm run check --workspaces --if-present
12+
cache: pnpm
13+
- run: pnpm install --lockfile-only
14+
- run: pnpm run build
15+
- run: pnpm run --recursive check

.github/workflows/size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/setup-node@v5
1414
with:
1515
node-version: 24
16-
cache: npm
16+
cache: pnpm
1717
- uses: preactjs/compressed-size-action@v2
1818
with:
1919
compression: brotli

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
- uses: actions/setup-node@v5
1313
with:
1414
node-version: 24
15-
cache: npm
16-
- run: npm ci
17-
- run: npm run build
15+
cache: pnpm
16+
- run: pnpm install --lockfile-only
17+
- run: pnpm run build
1818
- name: Disable AppArmor for chromium
1919
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns || true
20-
- run: npm run test
20+
- run: pnpm run test
2121
- if: always()
2222
uses: coverallsapp/github-action@v2
2323
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)