Skip to content

Commit ef19e9c

Browse files
committed
Replace Node.js setup with Bun in CI and deployment workflows; update dependency installation and build commands
1 parent f92f0e0 commit ef19e9c

3 files changed

Lines changed: 16 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Setup Node
22-
uses: actions/setup-node@v4
21+
- name: Setup Bun
22+
uses: oven-sh/setup-bun@v2
2323
with:
24-
node-version: 20
25-
cache: npm
24+
bun-version: latest
2625

2726
- name: Install dependencies
28-
run: npm ci
27+
run: bun install --frozen-lockfile
2928

3029
- name: Build site
31-
run: npm run build
30+
run: bun run build

.github/workflows/deploy-pages.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,16 @@ jobs:
2626
- name: Checkout docs branch
2727
uses: actions/checkout@v4
2828

29-
- name: Setup Node
30-
uses: actions/setup-node@v4
29+
- name: Setup Bun
30+
uses: oven-sh/setup-bun@v2
3131
with:
32-
node-version: 20
33-
cache: npm
32+
bun-version: latest
3433

3534
- name: Install dependencies
36-
run: npm ci
35+
run: bun install --frozen-lockfile
3736

3837
- name: Build site
39-
run: npm run build
38+
run: bun run build
4039

4140
- name: Setup Pages
4241
uses: actions/configure-pages@v5

.github/workflows/update-docs-i18n.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,19 @@ jobs:
6464
fetch-depth: 0
6565
ref: docs
6666

67-
- name: Setup Node.js
68-
uses: actions/setup-node@v4
67+
- name: Setup Bun
68+
uses: oven-sh/setup-bun@v2
6969
with:
70-
node-version: '20'
71-
cache: 'npm'
70+
bun-version: latest
7271

7372
- name: Install dependencies
74-
run: npm ci
73+
run: bun install --frozen-lockfile
7574

7675
- name: Generate translated docs
77-
run: npm run translate:docs
76+
run: bun run translate:docs
7877

7978
- name: Sync docs for Astro content layer
80-
run: npm run sync:docs
79+
run: bun run sync:docs
8180

8281
- name: Commit and push updates
8382
run: |

0 commit comments

Comments
 (0)