Skip to content

Commit 1211081

Browse files
committed
chore: migrate to Bun
1 parent 79cdc56 commit 1211081

5 files changed

Lines changed: 695 additions & 4673 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ jobs:
99
steps:
1010
- name: 'Checkout code'
1111
uses: 'actions/checkout@v6'
12-
- name: 'Install Node.js'
13-
uses: 'actions/setup-node@v6'
12+
- name: 'Install Bun'
13+
uses: 'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6'
1414
with:
15-
node-version: '22.x'
16-
- name: 'Install NPM packages'
17-
run: 'npm ci'
15+
bun-version: 'latest'
16+
- name: 'Install Bun packages'
17+
run: 'bun install --frozen-lockfile'
1818
- name: 'Build project'
1919
env:
2020
BASE_PATH: '/${{ github.event.repository.name }}'
21-
run: 'npm run build'
21+
run: 'bun run build'
2222
- name: 'Upload artifacts'
2323
uses: 'actions/upload-pages-artifact@v5'
2424
with:

.github/workflows/eslint.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
steps:
1212
- name: 'Checkout code'
1313
uses: 'actions/checkout@v6'
14-
- name: 'Install Node.js'
15-
uses: 'actions/setup-node@v6'
14+
- name: 'Install Bun'
15+
uses: 'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6'
1616
with:
17-
node-version: '22.x'
17+
bun-version: 'latest'
1818
- name: 'Install NPM packages'
19-
run: 'npm ci'
19+
run: 'bun install --frozen-lockfile'
2020
- name: 'Run tests'
21-
run: 'npm run test'
21+
run: 'bun run test'
2222
# TODO: remove it when the test code actually works.
2323
continue-on-error: true
2424
- name: 'Run ESLint'
25-
run: 'npm run lint'
25+
run: 'bun run lint'
2626
- name: 'Run svelte-check'
27-
run: 'npm run check'
27+
run: 'bun run check'

0 commit comments

Comments
 (0)