release-deploy
Release and deploy via GitHub tags and GitHub Actions (not every commit). Creates production releases from main and beta releases from staging using the GitHub CLI. Use when the user asks to release,
Files7
View on GitHubSKILL.mdskills/release-deploy/SKILL.md
GitHubRelease & Deploy (GitHub Tags)
Leading words: commits ≠ deploys; branch → channel; tag triggers ship; changelog is truth; interview once; never duplicate tag CI.
Core model
- Commits ≠ deploys. Only a git tag (or GitHub Release) triggers deployment via GitHub Actions.
- Branch → channel
- Repo default branch (
gh repo view --json defaultBranchRef -q .defaultBranchRef.name, typicallymainormaster) → production release staging→ beta release
- Repo default branch (
- Tags
- Production:
vMAJOR.MINOR.PATCH(e.g.v1.4.0) - Beta:
vMAJOR.MINOR.PATCH-beta.N(e.g.v1.4.0-beta.1)
- Production:
- Version lockstep: When
package.json(or generated plugin/lockfile manifests) exists, bumppackage.json"version"(X.Y.Zwithoutv), run the repo's sync/generate step and tests, and commit before tagging. - Release notes come from the project's maintained
CHANGELOG.md(do not invent a changelog). See references/versioning.md.
Before every release
- Load project config (
.balakit/release.mdin the target repository)- Look for
.balakit/release.mdat the root of the target repository (never write project configs inside this skill's own directory). - If missing → run the first-time interview in references/interview.md, write
<repo>/.balakit/release.mdfrom references/project.template.md, then continue.
- Look for
- Confirm channel with the user via the host's native structured question tool (
AskUserQuestion,AskQuestion,question,request_user_input,vscode_askQuestions, orask_user): beta (staging) or production (main/master). Never guess. - Verify git & workflow ownership (match the active OS shell):
- Correct branch checked out, clean working tree, synced with remote, HEAD at intended commit.
- Inspect
.github/workflows/(and.balakit/release.md) to see whether apush: tags: ['v*']workflow already creates the GitHub Release and/or runsnpm publish.
- Determine next version from existing tags + user intent. Follow references/versioning.md.
- Extract notes from
CHANGELOG.mdfor that version (cutting[Unreleased]into## [vX.Y.Z]first when committing a version bump). If changelog is missing/ambiguous → stop and ask.
Release workflow
Follow references/gh-release.md. Summary:
- Ensure
package.json,CHANGELOG.md(## [vX.Y.Z]), generated manifests, and tests are committed and pushed on the release branch. - If CI triggers on
push: tags: ['v*']and creates the GitHub Release: create and push an annotated tag (git tag -a vX.Y.Z -m "vX.Y.Z"+git push origin vX.Y.Z) — do NOT also rungh release createornpm publishlocally (which duplicates the release or races CI). - Otherwise (workflow triggers on
release: [published]or manual release): rungh release createwith tag, title,--notes-file, and--targetset to the release branch/SHA (--prereleasefor beta). - Watch the release/deploy workflow (
gh run watch) until green or report failure. - Summarize: tag, release URL, channel, and deploy target/URL from
.balakit/release.md.
Hard rules
- Never tag production from
staging, or beta from the production branch, unless.balakit/release.mddocuments a different map and the user confirms. - Never force-push tags or delete remote tags without explicit user request.
- Never write per-repo files inside
.agents/skills/orskills/release-deploy/— always write<repo>/.balakit/release.md. - Never fabricate changelog entries; only use
CHANGELOG.md(or ask the user to update it first). - Prefer
ghover raw API calls.
Platform-specific behavior
After the interview, .balakit/release.md names the stack. Read the matching reference only when needed:
- Cloudflare Workers/Pages → references/platforms/cloudflare.md
- Desktop apps (installers, auto-update, signed builds) → references/platforms/desktop.md
- Generic / npm / other → rely on
.balakit/release.mdworkflow names and URLs
Additional resources
- references/interview.md — first-time setup questions
- references/project.template.md — config file shape
- references/versioning.md — semver + changelog rules
- references/gh-release.md — GitHub CLI commands