Skip to content

Commit 85a7111

Browse files
committed
fix(deploy.yml): Change to Bun
1 parent e2b170f commit 85a7111

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Diff for: .github/workflows/deploy.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,19 @@ jobs:
3434
fetch-depth: 0 # Not needed if lastUpdated is not enabled
3535
# - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
3636
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
37-
- name: Setup Node
38-
uses: actions/setup-node@v4
37+
- uses: oven-sh/setup-bun@v2
3938
with:
40-
node-version: 20
41-
cache: npm # or pnpm / yarn
39+
bun-version: latest
4240
- name: Setup Pages
4341
uses: actions/configure-pages@v4
4442
- name: Install dependencies
45-
run: npm ci # or pnpm install / yarn install / bun install
43+
run: bun i # or pnpm install / yarn install / bun install
4644
- name: Build with VitePress
47-
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
45+
run: bun run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
4846
- name: Upload artifact
4947
uses: actions/upload-pages-artifact@v3
5048
with:
51-
path: docs/.vitepress/dist
49+
path: .vitepress/dist
5250

5351
# Deployment job
5452
deploy:

0 commit comments

Comments
 (0)