Install Bun in GitHub Actions
mainUse the oven-sh/setup-bun@v2 action to download, install, and set up Bun in your GitHub Actions workflows.
By default, if no version is specified, the action follows this resolution order:
- Checks
package.jsonfor thepackageManagerfield (e.g.,"packageManager": "bun@1.0.25"). - If
packageManageris missing, checkspackage.jsonforengines.bun. - If neither is found or
package.jsonis missing, it defaults tolatest.
- uses: oven-sh/setup-bun@v2