From 329233fc8b361b7ad54b5b06944d4e80c528c710 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Wed, 24 Jun 2026 19:09:13 -0400 Subject: [PATCH] fix(ci): add npm ci + build:lib before version sync in auto-backmerge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The auto-backmerge workflow runs sync-next-version.cjs which calls npm version, triggering the version lifecycle hook (gen-capability-registry.cjs). That script requires the compiled capability-validator.cjs (a build:lib artifact), which was never built on the backmerge runner — causing the backmerge to fail with 'capability validation failed — registry not written'. Add the build step. --- .github/workflows/auto-backmerge.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/auto-backmerge.yml b/.github/workflows/auto-backmerge.yml index 3548234c5..7fc561e8d 100644 --- a/.github/workflows/auto-backmerge.yml +++ b/.github/workflows/auto-backmerge.yml @@ -141,6 +141,11 @@ jobs: echo "dropped_oneline=" >> "$GITHUB_OUTPUT" fi + + - name: Install dependencies and build + if: steps.check.outputs.next_exists == 'true' + run: npm ci --silent && npm run build:lib + - name: Sync next's version to main's released version if: steps.check.outputs.next_exists == 'true' run: |