Prompt file imported from rapideditor/rapid-sdk (
.github/prompts/release.prompt.md). Fill in{{version}}before use. Copyright stays with the author.
description: Prepare a new release (CHANGELOG, version bump)
argument-hint: version number, for example: A.B.C or A.B.C-pre.D
You are preparing release {{version}} for this repo. Do the following steps in order:
-
Confirm the version — the new release version is
{{version}}. Readpackage.jsonto verify this is a valid bump from the current version.- The version must follow semver format, for example:
A.B.CorA.B.C-pre.D - It must be strictly greater than the current version in
package.json - If either check fails, stop immediately and explain the problem clearly — do not proceed with any further steps.
- The version must follow semver format, for example:
-
Identify commits since the last release by running:
git log --onelineFind the commit that corresponds to the previous release (look for the version bump or a release tag) and note all commits after it.
-
Look up PR numbers — read the repo URL from
package.json(the"repository"field or"bugs.url"field) to determine{owner}and{repo}, then fetch the closed PRs list:https://github.com/{owner}/{repo}/pulls?q=is%3Apr+is%3AclosedMatch each commit to its PR number. PR titles listed there are authoritative — prefer them over raw commit messages.
-
Update
CHANGELOG.md— insert a new section immediately above the previous release heading. Follow the existing format exactly:- Header:
# {{version}} - Date:
##### YYYY-MMM-DD(use today's date) - Bullet points for each user-visible change (features, fixes, improvements)
- For bug/fix commits, write a plain bullet
- Internal/dev-only commits (CI config, agent setup, etc.) can be omitted or grouped into a single terse bullet
- Add reference links at the bottom of the section:
- PR links:
[#NNN]: https://github.com/rapideditor/rapid-sdk/issues/NNN
- PR links:
- Header:
-
Update versions — this is a monorepo with workspaces. Set
"version"to"{{version}}"in the rootpackage.jsonand in each workspacepackage.jsonunderpackages/.