A GitHub composite action that sets up Bun and runs your build process. This action automates the common workflow of checking out code, installing Bun, installing dependencies, and building your project.
- Fast Setup: Automatically installs the latest version of Bun
- Dependency Management: Runs
bun cifor clean, reproducible dependency installation - Build Automation: Executes your build script using Bun
- Composite Action: Easy to integrate into any workflow
Add this action to your workflow:
name: My Workflow
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run Bun Basic Action
uses: jeff283/bun-basic-action@mainThis composite action performs the following steps:
- Checkout Code: Uses
actions/checkout@v4to checkout your repository - Setup Bun: Installs the latest version of Bun using
oven-sh/setup-bun@v2 - Install Dependencies: Runs
bun cito install dependencies from your lockfile - Build: Executes
bun run buildto build your application
Your repository should have:
- A
package.jsonfile with abuildscript defined - A
bun.lockbfile (Bun's lockfile) for reproducible installs
your-repo/
├── package.json # Must include a "build" script
├── bun.lockb # Bun lockfile
├── index.ts # Your source files
└── tsconfig.json # TypeScript configuration (if using TypeScript)
Contributions are welcome! Please feel free to submit a Pull Request.
Jeff Njoroge (@jeff283)