Skip to content

Commit 0987d7c

Browse files
committed
ci: update workflows to use Bun
1 parent 1f1c69b commit 0987d7c

File tree

2 files changed

+13
-22
lines changed

2 files changed

+13
-22
lines changed

.github/workflows/checks.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,26 @@ jobs:
1818
runs-on: macos-15-xlarge
1919
steps:
2020
- uses: actions/checkout@v5
21-
- uses: actions/setup-node@v6
22-
with:
23-
node-version: 22
24-
cache: "npm"
25-
- run: npm ci --legacy-peer-deps
26-
- run: npx biome ci --error-on-warnings
21+
- uses: oven-sh/setup-bun@v2
22+
- run: bun ci
23+
- run: bunx biome ci --error-on-warnings
2724

2825
test:
2926
runs-on: macos-15-xlarge
3027
steps:
3128
- uses: actions/checkout@v5
32-
- uses: actions/setup-node@v6
33-
with:
34-
node-version: 22
35-
cache: "npm"
36-
- run: npm ci --legacy-peer-deps
37-
- run: npm run test
29+
- uses: oven-sh/setup-bun@v2
30+
- run: bun ci
31+
- run: bun run test
3832

3933
types:
4034
runs-on: macos-15-xlarge
4135
steps:
4236
- uses: actions/checkout@v5
43-
- uses: actions/setup-node@v6
44-
with:
45-
node-version: 22
46-
cache: "npm"
47-
- run: npm ci --legacy-peer-deps
48-
- run: npm run test:src-types
49-
- run: npm run test:types
37+
- uses: oven-sh/setup-bun@v2
38+
- run: bun ci
39+
- run: bun --bun test:src-types
40+
- run: bun --bun test:types
5041

5142
deploy-docs:
5243
if: github.ref == 'refs/heads/master'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
registry-url: "https://registry.npmjs.org"
1818

1919
- name: Install dependencies
20-
run: npm ci --legacy-peer-deps
20+
run: bun ci
2121

2222
- name: Build docs
23-
run: npm run build:docs
23+
run: bun build:docs
2424

2525
- name: Prune package.json
26-
run: npx culls --preserve=svelte
26+
run: bunx culls --preserve=svelte
2727

2828
- name: Publish package (stable)
2929
if: ${{ ! contains(github.ref, '-next') }}

0 commit comments

Comments
 (0)