Release Management
Purpose
Standardizes the process of tagging, documenting, and publishing software releases. Responsibility boundary: designs and edits release configuration (version bump, changelog, tag, publish steps); does NOT write feature code, build general CI pipelines, or publish artifacts on its own without an explicit request.
When to Use / When NOT to Use
- Use: Publishing packages to npm/PyPI/Maven, generating release notes, tagging git commits.
- NOT: Internal experimental builds not meant for consumption.
- NOT: General build/test pipeline design (use
ci-cd-pipelines).
- NOT: Enforcing commit message format (use
git-workflow-commit-conventions).
- NOT: Hand-writing a changelog from Git history (use
documentation-changelog-writer).
Prerequisites & Assumptions
- Conventional Commits enforced. Registry credentials configured securely.
Scope & Context Resolution
- Supported scopes: repository (default), release/publish pipeline file, single package in a monorepo, release config file (e.g.
.releaserc), single release/tag.
- Rule 1 - Explicit context: The user's stated requirements, constraints, versions, targets and scope are authoritative. Apply the skill strictly within them. MUST NOT add assumptions or expand beyond them. If a user instruction conflicts with a skill rule, follow the user and state the deviation in one line. Security/data-loss rules (credential handling, immutable artifacts) stay mandatory; flag the conflict instead.
- Rule 2 - No extra context: Use this skill's Purpose, workflow and rules as the sole context, at repository scope. MUST NOT import unrelated requirements or assumptions.
- Rule 3 - Explicit scope: Operate ONLY inside the named scope. Out-of-scope files MAY be read as evidence but MUST NOT be modified; report out-of-scope observations as notes. Widening scope requires explicit user approval.
- Mutation boundary: Edits limited to release configuration, version/changelog files and release pipeline steps in scope. MUST NOT push tags or publish artifacts unless explicitly asked.
Step-by-Step Workflow
- Resolve scope and context (see above); state the resolved scope and mutation boundary in one line at the start of the output.
- Analyze commits since last tag (within the resolved package/scope).
- Bump semantic version (Major/Minor/Patch).
- Generate
CHANGELOG.md.
- Create Git tag and publish artifacts.
Enterprise Rules & Standards (MUST / SHOULD / MUST NOT)
- MUST: Stay within the resolved scope; MUST NOT modify or expand beyond it without explicit user approval.
- MUST: Follow Semantic Versioning (SemVer) strictly.
- MUST: Auto-generate changelogs from commit messages.
- SHOULD: Sign release artifacts and Git tags (GPG/Sigstore).
- MUST NOT: Modify published immutable artifacts (e.g., Docker tags).
- MUST NOT: Rewrite the whole CI pipeline or other packages' release config when asked about one release step.
Examples (good vs. bad, with realistic code or output)
- Bad: Manually editing
package.json version and pushing.
- Good: Using
semantic-release to automate version bump and publish.
- Scope - Good: Prompt "only the
api package in this monorepo" -> edit only packages/api release config; note that web lacks a changelog step without changing it.
- Scope - Bad: Same prompt -> migrating every package to a new versioning scheme and rewriting the root workflow.
Checklist (verifiable, copy-pasteable)
Common Pitfalls
- Forgetting to update lockfiles before release.
- Publishing broken releases without rollback strategy.
- Reconfiguring releases for every package in a monorepo when only one was requested.
References (official docs, standards)
1---2name: ci-cd-release-management3description: 'Automate semantic versioning, changelogs, artifact publishing. Trigger: "automate release", "semantic release setup", "publish package".'4metadata:5 source: https://skillmd.com/skills/pnguyen215/ci-cd-release-management6 category: ci-cd7 tags: "ci-cd, release, semver, changelog, publishing"8---910# Release Management1112## Purpose1314Standardizes the process of tagging, documenting, and publishing software releases. Responsibility boundary: designs and edits release configuration (version bump, changelog, tag, publish steps); does NOT write feature code, build general CI pipelines, or publish artifacts on its own without an explicit request.1516## When to Use / When NOT to Use1718- **Use**: Publishing packages to npm/PyPI/Maven, generating release notes, tagging git commits.19- **NOT**: Internal experimental builds not meant for consumption.20- **NOT**: General build/test pipeline design (use `ci-cd-pipelines`).21- **NOT**: Enforcing commit message format (use `git-workflow-commit-conventions`).22- **NOT**: Hand-writing a changelog from Git history (use `documentation-changelog-writer`).2324## Prerequisites & Assumptions2526- Conventional Commits enforced. Registry credentials configured securely.2728### Scope & Context Resolution2930- **Supported scopes**: repository (default), release/publish pipeline file, single package in a monorepo, release config file (e.g. `.releaserc`), single release/tag.31- **Rule 1 - Explicit context**: The user's stated requirements, constraints, versions, targets and scope are authoritative. Apply the skill strictly within them. MUST NOT add assumptions or expand beyond them. If a user instruction conflicts with a skill rule, follow the user and state the deviation in one line. Security/data-loss rules (credential handling, immutable artifacts) stay mandatory; flag the conflict instead.32- **Rule 2 - No extra context**: Use this skill's Purpose, workflow and rules as the sole context, at repository scope. MUST NOT import unrelated requirements or assumptions.33- **Rule 3 - Explicit scope**: Operate ONLY inside the named scope. Out-of-scope files MAY be read as evidence but MUST NOT be modified; report out-of-scope observations as notes. Widening scope requires explicit user approval.34- **Mutation boundary**: Edits limited to release configuration, version/changelog files and release pipeline steps in scope. MUST NOT push tags or publish artifacts unless explicitly asked.3536## Step-by-Step Workflow37381. Resolve scope and context (see above); state the resolved scope and mutation boundary in one line at the start of the output.392. Analyze commits since last tag (within the resolved package/scope).403. Bump semantic version (Major/Minor/Patch).414. Generate `CHANGELOG.md`.425. Create Git tag and publish artifacts.4344## Enterprise Rules & Standards (MUST / SHOULD / MUST NOT)4546- **MUST**: Stay within the resolved scope; MUST NOT modify or expand beyond it without explicit user approval.47- **MUST**: Follow Semantic Versioning (SemVer) strictly.48- **MUST**: Auto-generate changelogs from commit messages.49- **SHOULD**: Sign release artifacts and Git tags (GPG/Sigstore).50- **MUST NOT**: Modify published immutable artifacts (e.g., Docker tags).51- **MUST NOT**: Rewrite the whole CI pipeline or other packages' release config when asked about one release step.5253## Examples (good vs. bad, with realistic code or output)5455- **Bad**: Manually editing `package.json` version and pushing.56- **Good**: Using `semantic-release` to automate version bump and publish.57- **Scope - Good**: Prompt "only the `api` package in this monorepo" -> edit only `packages/api` release config; note that `web` lacks a changelog step without changing it.58- **Scope - Bad**: Same prompt -> migrating every package to a new versioning scheme and rewriting the root workflow.5960## Checklist (verifiable, copy-pasteable)6162- [ ] Scope and context resolved and stated.63- [ ] No changes outside the resolved scope.64- [ ] SemVer enforced.65- [ ] Changelog auto-generated.66- [ ] Artifacts signed.6768## Common Pitfalls6970- Forgetting to update lockfiles before release.71- Publishing broken releases without rollback strategy.72- Reconfiguring releases for every package in a monorepo when only one was requested.7374## References (official docs, standards)7576- [Semantic Versioning 2.0.0](https://semver.org/)77- [Conventional Commits](https://www.conventionalcommits.org/)78- [Keep a Changelog](https://keepachangelog.com/)