fix: replace setup-bun action with curl-based installation #819
+28
−24
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.
Replace
oven-sh/setup-bunaction with curl-based installationProblem
This PR fixes bun installation on GitHub Enterprise Server (GHES). On GHES environments, the
oven-sh/setup-bunaction may not be available at the expected path (it could be synced under a different path likesynced-actions/oven-sh/setup-bun).The current implementation uses
oven-sh/setup-bunwith a conditionalifstatement, but GitHub Actions resolves and downloads all referenced actions at workflow parse time, before any conditional logic runs. This causes the action to fail on GHES regardless of the conditional logic.Changes
oven-sh/setup-bunaction with inline curl-based installation in bothaction.ymlandbase-action/action.ymlpath_to_bun_executableinput continues to work for users who want to manage bun installation themselvesBenefits
~/.bun/bin)Testing
Tested the shell script logic directly:
path_to_bun_executableis providedCloses #618
🤖 Generated with Claude Code