Skip to content

Commit 66c4b25

Browse files
committed
Migrate to Bun for workflows
1 parent 5e03fd0 commit 66c4b25

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,29 @@ on:
66

77
jobs:
88
build:
9+
name: Build
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Checkout repository
1213
uses: actions/checkout@v4
1314

14-
- name: Setup pnpm
15-
uses: pnpm/action-setup@v2
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v2
1617
with:
17-
version: 6.32.9
18-
19-
- name: Setup Node.js with pnpm cache
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: 18
23-
cache: "pnpm"
18+
bun-version: latest
2419

2520
- name: Install dependencies
26-
run: pnpm install
21+
run: bun install
2722

2823
- name: Type check project
2924
run: |
30-
pnpm run type-build
31-
pnpm run type-check
25+
bun run type-build
26+
bun run type-check
3227
3328
- name: Lint and check formatting
34-
run: pnpm run check
29+
run: |
30+
bun run lint
31+
bun run check
3532
3633
- name: Build project
37-
run: pnpm run build
34+
run: bun run build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
"vscode:prepublish": "npm run prod",
307307
"lint": "eslint .",
308308
"format": "prettier --write .",
309-
"format:check": "prettier --check .",
309+
"check": "prettier --check .",
310310
"type-build": "tsc --build",
311311
"type-check": "tsc --noEmit",
312312
"build-js": "node ./esbuild.mjs",

0 commit comments

Comments
 (0)