docs/plans/2026-03-26-template-sync-main-ci-debug.md
echo "Template sync automation failed." with no useful contextmain and update the checkout.Template sync automation failed. step lives in .github/workflows/release.yml, not registry.yml.release.yml runs pnpm templates:update --local with continue-on-error: true, then masks the real failure at the end with a generic echo + exit 1.registry.yml runs the same updater path on both PR validation and main sync, but does not currently hide the failing command behind the same wrapper step.tooling/scripts/update-templates.sh just dispatches basic and ai.tooling/scripts/update-template.sh:
bun update --latestpnpm dlx shadcn@latest add ...bun lint:fixbun typecheck@platejs/* dependencies to ^52.3.10platejs stayed at ^52.3.9[email protected] hard-pins @platejs/[email protected]@platejs/[email protected] still depends on @platejs/core:^52.3.4@platejs/[email protected] and nested @platejs/[email protected] under @platejs/utils/editor prerender crash is a symptom of that split graph:
bun run build -- --debug-prerender fails in TurnIntoToolbarButton on useSelectionFragmentProp(...)templates/plate-playground-template/node_modules/@platejs/utils/node_modules/@platejs/core makes the build pass unchangedplatejs manifest after switching its internal workspace deps to workspace:^@platejs/utils manifest with @platejs/core:^52.3.9@platejs/* deps forced to ^52.3.10debug, learnings-researcher, planning-with-files, and tdd.main; branch was already up to date with origin/main..github/workflows/release.yml after the template-sync phase.bun run build -- --debug-prerender; /editor crashes on useSelectionFragmentProp(...).[email protected], @platejs/[email protected], top-level @platejs/[email protected], and nested @platejs/[email protected].@platejs/utils is removed.packages/plate/package.json to publish compatible internal workspace ranges, added a manifest guard for the umbrella package, and wrote release changesets for platejs and @platejs/utils.pnpm install, pnpm test:manifests, pnpm lint:fix, packed-tarball manifest inspection, and isolated template builds against the packed local platejs + @platejs/utils manifests.release.yml had a failure path that created templates/release-sync-failure PRs, but no later-success path that closed them after main received a successful template sync.release.yml so successful template sync runs close any open PR whose head branch is templates/release-sync-failure.