From 9ea4cce2661d0340568c308266a940bef446f64a Mon Sep 17 00:00:00 2001 From: ework-agent Date: Sat, 24 Oct 2026 22:25:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(release):=20train=20mode=20survives=20pre-#?= =?UTF-8?q?4449=20patch=20lanes=20=E2=80=94=20guard=20the=20manifest-sync?= =?UTF-8?q?=20script=20call=20and=20the=20manifest=20git-add=20(both=20fat?= =?UTF-8?q?al=20on=20lanes=20cut=20from=20tags=20older=20than=20b87732e2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-manual.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index b8176b6a08..cb486bb4bd 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -149,11 +149,21 @@ jobs: # #4449: plugin manifests (.agents/.claude-plugin/plugins/codex) carry # their version from package.json — sync them into the same release # commit or marketplace update detection sees a stale version. - node scripts/sync-codex-plugin-version.mjs + # Pre-b87732e2 patch lanes (cut from tags older than #4449) have no + # manifests and no script — `git add` fatals on the absent pathspecs + # and the script itself is MODULE_NOT_FOUND, killing train mode on + # exactly the lanes that need it. Existence-guard both. + if [ -f scripts/sync-codex-plugin-version.mjs ]; then + node scripts/sync-codex-plugin-version.mjs + else + echo "::notice::sync-codex-plugin-version.mjs absent on this ref (pre-#4449 patch lane) — skipping manifest sync" + fi - name: Verify bump diff run: | - git add package.json package-lock.json .agents .claude-plugin plugins/codex + for P in package.json package-lock.json .agents .claude-plugin plugins/codex; do + [ -e "$P" ] && git add "$P" + done CHANGED="$(git diff --cached --name-only)" [ -n "$CHANGED" ] || { echo "::error::bump produced no changes"; exit 1; } BAD="$(printf '%s\n' "$CHANGED" | grep -vE '^(package\.json|package-lock\.json|\.agents/plugins/marketplace\.json|\.claude-plugin/marketplace\.json|\.claude-plugin/plugin\.json|plugins/codex/\.codex-plugin/plugin\.json)$' || true)"