Skip to content

Fix docs deployment: switch from npm to Bun#306

Merged
brianmhunt merged 2 commits intomainfrom
fix/deploy-docs-bun
Apr 14, 2026
Merged

Fix docs deployment: switch from npm to Bun#306
brianmhunt merged 2 commits intomainfrom
fix/deploy-docs-bun

Conversation

@brianmhunt
Copy link
Copy Markdown
Member

Summary

The docs deploy workflow (deploy-docs.yml) has been failing since the Bun migration (#303) because it uses npm ci with cache-dependency-path: package-lock.json — but package-lock.json was deleted.

Switch to bun install --frozen-lockfile and remove the Node setup step.

Test plan

  • Deploy workflow succeeds after merge
  • tko.io shows the examples showcase pages

🤖 Generated with Claude Code

package-lock.json was deleted in #303. The deploy workflow used
npm ci with cache-dependency-path: package-lock.json, causing
all deployments to fail since the Bun migration.

Switch to bun install --frozen-lockfile, remove Node setup
(Bun handles everything).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 14, 2026 17:52
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 14, 2026

Warning

Rate limit exceeded

@brianmhunt has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 1 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 2 minutes and 1 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a36dcbcb-d4db-4653-9803-9eb3d048bb33

📥 Commits

Reviewing files that changed from the base of the PR and between c98d87e and 3f1f427.

📒 Files selected for processing (2)
  • .github/workflows/deploy-docs.yml
  • .github/workflows/release.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/deploy-docs-bun

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Pages docs deployment workflow to align with the repository’s Bun-based package management so the workflow no longer relies on a removed package-lock.json.

Changes:

  • Replaced npm ci with bun install --frozen-lockfile for monorepo dependency installation.
  • Removed the actions/setup-node step from the docs deploy workflow.
  • Simplified the monorepo build step from make all to make (default target).
Comments suppressed due to low confidence (1)

.github/workflows/deploy-docs.yml:40

  • tko.io's build script invokes the astro CLI with NODE_OPTIONS=--experimental-strip-types, and prebuild explicitly runs node ... (see tko.io/package.json). Removing actions/setup-node means this workflow now depends on whatever Node version happens to be preinstalled on ubuntu-latest, which can break the docs build if that Node version doesn’t support the required NODE_OPTIONS flag. Consider restoring actions/setup-node (without npm caching) and pinning a Node version known to work for the docs build (e.g. 22+), or refactoring the docs scripts to avoid requiring the node binary/Node-specific flags.
      - name: Setup Bun
        uses: oven-sh/setup-bun@v2

      - name: Install monorepo dependencies
        run: bun install --frozen-lockfile

      - name: Build monorepo packages
        run: make

      - name: Install site dependencies
        run: cd tko.io && bun install --frozen-lockfile

      - name: Build site
        run: cd tko.io && bun run build

release.yml used npm ci which requires the deleted package-lock.json.
Switch to bun install --frozen-lockfile. Keep Node/npm for changeset
publishing (npm OIDC trusted publishing requires npm CLI).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brianmhunt brianmhunt merged commit 2ac5909 into main Apr 14, 2026
5 checks passed
@brianmhunt brianmhunt deleted the fix/deploy-docs-bun branch April 14, 2026 18:07
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