From 603950e5bafc435bb734cdfc46117d8df4301e40 Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Tue, 7 Jul 2026 13:47:33 -0700 Subject: [PATCH] fix(ci): build engine package before the release self-host bundle release-selfhost.yml's --all bundle mode (the self-contained Docker image build) hit the same @jsonbored/gittensory-engine resolution gap ci.yml's validate-code job was fixed for: packages/gittensory-miner/lib/*.js (committed, pre-built) imports the engine package, whose dist/ is gitignored and only exists after an explicit build step. The regular selfhost.yml smoke test's narrower (non --all) build never touches that import chain, so it never caught this -- only the release pipeline's full bundle does, discovered when cutting orb-v0.4.0-beta.2 failed on this exact error. --- .github/workflows/release-selfhost.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release-selfhost.yml b/.github/workflows/release-selfhost.yml index 31780b216e..781622c735 100644 --- a/.github/workflows/release-selfhost.yml +++ b/.github/workflows/release-selfhost.yml @@ -99,6 +99,14 @@ jobs: - name: Install deps run: npm ci --ignore-scripts + # #ci-engine-build-order (release pipeline): --all bundles EVERYTHING self-contained, including + # packages/gittensory-miner/lib/*.js (committed, pre-built) which imports @jsonbored/gittensory-engine. + # That package's dist/ is gitignored and only exists after this build step -- the regular CI smoke + # test's narrower (non --all) build never hits this import chain, so it never caught the gap that + # ci.yml's own validate-code job hit for ordinary backend PRs (fixed there separately). + - name: Build engine package + run: npm run build --workspace @jsonbored/gittensory-engine + - name: Build self-host bundle for release run: node scripts/build-selfhost.mjs --all