Release Template
Use this skill only from the workspace root when preparing a template release.
Procedure
- Review pending template changes and decide the next semantic version.
- Dry-run the atomic release helper:
```bash
bun scripts/release-template.ts --version X.Y.Z --dry-run
```
Use --bump patch|minor|major instead of --version when the current templates/VERSION should be incremented mechanically.
- Prepare the release without publishing the tag remotely:
```bash
bun scripts/release-template.ts --version X.Y.Z
```
This updates templates/VERSION, moves templates/CHANGELOG.md [Unreleased] content into ## [X.Y.Z] - YYYY-MM-DD, and creates the local template-vX.Y.Z tag through tag-template.ts --no-push.
- Verify:
```bash
bun scripts/validate-templates.ts
bun scripts/verify-scripts.ts --verify
```
- Publish only after the release commit is ready:
```bash
git push origin template-vX.Y.Z
```
Or run the helper with --push when remote publication should be part of the same operation.
Safety Rules
- Do not edit
templates/VERSION,templates/CHANGELOG.md, and template tags as separate manual steps. - Use
--no-tagonly when testing changelog/version output in a temporary branch. - If
tag-template.tsfails,release-template.tsrestorestemplates/VERSIONandtemplates/CHANGELOG.mdand deletes the local release tag.