mirror of https://github.com/Mai-with-u/MaiBot.git
更新工作流以使用 Bun 替代 Node 进行构建
parent
a19b9b2c42
commit
15ab1343b9
|
|
@ -20,16 +20,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Bun
|
||||||
uses: actions/setup-node@v4
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
bun-version: "1.2.0"
|
||||||
|
|
||||||
- name: Build dashboard
|
- name: Build dashboard
|
||||||
working-directory: dashboard
|
working-directory: dashboard
|
||||||
run: |
|
run: |
|
||||||
npm install
|
bun install
|
||||||
npm run build
|
bun run build
|
||||||
|
|
||||||
- name: Prepare dist package
|
- name: Prepare dist package
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue