Skip to content

Configure CI/CD workflow to use Bun for GitHub Pages deployment#2

Merged
StarOne01 merged 3 commits intomainfrom
copilot/add-ci-cd-for-bun-deploy
Dec 9, 2025
Merged

Configure CI/CD workflow to use Bun for GitHub Pages deployment#2
StarOne01 merged 3 commits intomainfrom
copilot/add-ci-cd-for-bun-deploy

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 9, 2025

The existing workflow detected bun.lock but still used Node.js for installation and builds. This updates the pipeline to properly utilize Bun throughout.

Changes

GitHub Actions Workflow (.github/workflows/nextjs.yml):

  • Replace actions/setup-node@v4 with oven-sh/setup-bun@v2 (pinned to v1.1.38)
  • Remove package manager detection logic
  • Update cache keys to reference only bun.lock
  • Use bun install and bun run build commands directly

Next.js Configuration (next.config.js):

  • Add output: 'export' for static site generation (required for GitHub Pages)
- name: Setup Bun
  uses: oven-sh/setup-bun@v2
  with:
    bun-version: "1.1.38"
    
- name: Install dependencies
  run: bun install
  
- name: Build with Next.js
  run: bun run build
Original prompt

write a CI/CD for bun to deploy to github pages


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 9, 2025 03:12
Co-authored-by: StarOne01 <67097277+StarOne01@users.noreply.github.com>
Co-authored-by: StarOne01 <67097277+StarOne01@users.noreply.github.com>
Copilot AI changed the title [WIP] Add CI/CD pipeline for bun deployment to GitHub Pages Configure CI/CD workflow to use Bun for GitHub Pages deployment Dec 9, 2025
Copilot AI requested a review from StarOne01 December 9, 2025 03:17
@StarOne01 StarOne01 marked this pull request as ready for review December 9, 2025 03:20
@StarOne01 StarOne01 merged commit b6d03e7 into main Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants