From f4816f4cd190645165ad781fc7d5bc6c3475a32b Mon Sep 17 00:00:00 2001 From: Natalie Date: Mon, 29 Jun 2026 06:02:24 -0400 Subject: [PATCH] ci: pin bun to repo packageManager (1.2.6) so frozen-lockfile is deterministic The ct-forge runner installs latest bun (1.3.14); ci.yml previously used the runner's ambient bun, which rejected the committed lockfile ('lockfile had changes, but lockfile is frozen'). Install the pinned bun@1.2.6 (matches package.json packageManager) and prepend to PATH before install. Co-Authored-By: Claude Opus 4.8 --- .forgejo/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index bca12dcf..bb5a0274 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -35,6 +35,14 @@ jobs: with: fetch-depth: 1 + # Pin bun to the repo's packageManager version so `--frozen-lockfile` is + # deterministic regardless of the (disposable, latest-bun) runner image. + # Without this, a newer ambient bun rejects the committed lockfile. + - name: Setup pinned bun (1.2.6) + run: | + curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.6" + echo "$HOME/.bun/bin" >> "$GITHUB_PATH" + - name: Cache bun dependencies uses: actions/cache@v3 with: