ci: pin bun to 1.2.15 to avoid bundler output drift#14
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Pins the Bun version used in CI to prevent dist/index.js bundler output from drifting when latest updates, which was causing check_unstaged.sh failures in the workflow for this GitHub Action.
Changes:
- Pin
oven-sh/setup-bunto Bun1.2.15in the CI workflow. - Regenerate
dist/index.jsso the committed build artifact matches the pinned Bun bundler output.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
dist/index.js |
Rebuilt bundled artifact to match Bun 1.2.15 output and avoid CI “unstaged changes” drift. |
.github/workflows/ci.yaml |
Pins Bun to 1.2.15 to stabilize builds across CI runs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The CI workflow used bun-version: latest, which recently jumped to 1.3.11. Bun 1.3.10 changed the bundler preamble (WeakMap caching, __accessProp, __exportSetter), so dist/index.js built locally with 1.2.x no longer matches what CI produces — instant check_unstaged failure for anyone not running bleeding-edge bun. ci: rebuild dist/index.js with bun 1.2.15
e53fdfa to
b51313a
Compare
mafredri
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #12
Problem:
latestrecently jumped to 1.3.11 which changed bundler preamble, causingcheck_unstaged.shfailuresbun-versionfromlatestto1.2.15(version from codercom/oss-dogfood) in CI workflowdist/index.jswith pinned version to match