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 <noreply@anthropic.com>
This commit is contained in:
parent
8b362f0949
commit
f4816f4cd1
1 changed files with 8 additions and 0 deletions
|
|
@ -35,6 +35,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
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
|
- name: Cache bun dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue