@tailor-platform/sdk-plugin-setup
v0.20.1
Published
Tailor CLI plugin providing the `tailor setup` commands (repository automation setup)
Readme
@tailor-platform/sdk-plugin-setup
Tailor CLI plugin that provides the tailor setup commands: generate GitHub Actions deploy workflows (branch, tag, preview), a dependency-update config, and audit, regenerate, or delete what it generated.
[!NOTE] This package is a CLI plugin: it ships an external
tailor-setupexecutable that the Tailor CLI dispatches to when you runtailor setup.
Installation
Install it next to @tailor-platform/sdk in your project:
npm install -D @tailor-platform/sdk-plugin-setupThe Tailor CLI discovers the plugin automatically from node_modules/.bin (or your PATH). Run tailor plugin list to confirm it resolves.
Usage
# Branch target: deploy to stg on every push to main
tailor setup ci branch --name my-app-stg
# Tag target: deploy to production when a tag is pushed, with an approval gate
tailor setup ci tag --name my-app-prod --branch main --environment production
# Audit generated workflows for drift
tailor setup check
# Regenerate every workflow after an SDK upgrade
tailor setup updateCommands
| Command | Description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| setup ci branch | Generate a branch-target deploy workflow (push to branch triggers deploy). |
| setup ci tag | Generate a tag-target deploy workflow (tag push triggers deploy). |
| setup ci preview | Generate preview workflows: PR open/sync deploys to a per-PR workspace, and closing the PR deletes it. |
| setup ci autofix | Generate a workflow that runs tailor generate on each PR and commits what it changes to the PR branch, and with --codemod checks or applies the codemods of an SDK upgrade. |
| setup ci env | Print the secrets and variables each GitHub Environment needs, as gh commands or Terraform, or check which are registered (--check). |
| setup deps | Generate a dependency update config for Tailor dependency and workflow updates. |
| setup check | Audit generated workflows for drift against the current config/repo (read-only). |
| setup update | Regenerate every workflow in .github/tailor.lock with the flags it was generated with. |
| setup delete | Delete managed workflow file(s) and their .github/tailor.lock entries. Either workflow of a preview target deletes both. |
Run tailor setup ci <command> --help for CI generator options, or
tailor setup <command> --help for deps, check, update, and delete options.
Further reading
- GitHub Actions Integration — usage guide: targets, generated files, secrets, approval gates, and rollback.
