Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/lib/npm-ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ async function npmCi({ cwd } = {}) {

// pnpm is not installed on GitHub Actions by default
installCommand = 'npx pnpm i --frozen-lockfile';
} else if (fs.existsSync('bun.lockb')) {
log.info('Installing dependencies with bun');

// bun is not installed on GitHub Actions by default, expect user to use `oven-sh/setup-bun`
installCommand = 'bun i --frozen-lockfile';
} else {
log.info('No lock file detected. Installing dependencies with npm');
installCommand = 'npm i';
Expand Down