A GitHub Actions helper library (v0.2.3, pre-1.0, monthly releases) for upstream template repositories to publish migration bundles and for downstream subscriber repositories to opt into controlled migration PRs. Provides three CLI binaries – publish-template-migration, subscriber-template-sync, and handle-template-sync-command – along with example workflows. Unlike raw git-based sync or manual cherry-picks, it offers a formal approve/revise/decline lifecycle for template changes in drifted subscriber repos. Requires Node >=20.
npm install template-subscriber-migration-systemNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows a complete GitHub Actions workflow that runs weekly to discover the newest template migration and open a subscriber PR.
Upgrade Node to version 20 or later.
Set GITHUB_TOKEN in the workflow environment.
Replace `migration_path` with `subscriber_dir` in your config file.
Use `TEMPLATE_SYNC_PACKAGE` as the environment variable name.
Pin to a specific version in production workflows, e.g., `template-subscriber-migration-system@0.2.3`.
Add `env: { GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} }` to the workflow step.Run `npx --yes --package template-subscriber-migration-system@latest subscriber-template-sync` instead of just `subscriber-template-sync`.
Ensure the upstream template has published a migration bundle via `publish-template-migration` before running subscriber sync.
Verify the `subscriber_dir` path in your config file points to an existing directory within the repository.