From 6a46f4dfa3790ebb9a81625d6188053c46739d14 Mon Sep 17 00:00:00 2001 From: ilbertt Date: Sun, 4 Oct 2026 09:42:17 +0200 Subject: [PATCH] ci: read Bun version from package.json --- .bun-version | 1 - .github/actions/prepare/action.yml | 2 +- AGENTS.md | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 .bun-version diff --git a/.bun-version b/.bun-version deleted file mode 100644 index 9df886c..0000000 --- a/.bun-version +++ /dev/null @@ -1 +0,0 @@ -1.4.2 diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index 10329da..4734163 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -6,7 +6,7 @@ runs: steps: - uses: oven-sh/setup-bun@v2 with: - bun-version-file: .bun-version + bun-version-file: package.json - name: Turbo Cache uses: actions/cache@v5 diff --git a/AGENTS.md b/AGENTS.md index 1a20eda..05a688d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -53,9 +53,9 @@ Releases are automated and driven by Conventional Commits: ## Bun version -The Bun version is pinned in `.bun-version` — the version the repo develops and builds against. Keep `packageManager` in the root `package.json` in sync with it. +The Bun version is pinned in the root `package.json`'s `packageManager` — the version the repo develops and builds against. CI reads this pin directly from `package.json`. -`engines.bun` in `packages/bun-sqlgen/pkg/package.json` is a separate decision: it's the oldest Bun the published package still runs on, not the version we build with. Raise it only when the package actually depends on a newer runtime — bumping it in lockstep with `.bun-version` drops users who could otherwise install fine. +`engines.bun` in `packages/bun-sqlgen/pkg/package.json` is a separate decision: it's the oldest Bun the published package still runs on, not the version we build with. Raise it only when the package actually depends on a newer runtime — bumping it in lockstep with `packageManager` drops users who could otherwise install fine. ## Pull requests