setup-bun GitHub Action 在你的 GitHub Actions 运行器中安装 bun。
workflow.yml
指定要安装的 Bun 版本:
workflow.yml
有关
setup-bun GitHub Action 的完整文档,请参阅 README.md。setup-bun GitHub Action 在你的 GitHub Actions 运行器中安装 bun。
name: my-workflow
jobs:
my-job:
name: my-job
runs-on: ubuntu-latest
steps:
# ...
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
# 运行任意 `bun` 或 `bunx` 命令
- run: bun install
- run: bun index.ts
- run: bun run build
name: my-workflow
jobs:
my-job:
name: my-job
runs-on: ubuntu-latest
steps:
# ...
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.3 # 或 "latest", "canary", <sha> #
setup-bun GitHub Action 的完整文档,请参阅 README.md。