Skip to content

Commit 30b565b

Browse files
authored
docs: add Rstack release skill (#19)
1 parent d064638 commit 30b565b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: release-rstack
3+
description: Create a release pull request for the `rstack` npm package at a specific version. Use when asked to prepare, create, or open an rstack package release PR.
4+
---
5+
6+
# Release Rstack
7+
8+
## Input
9+
10+
- Target version without a leading `v`, for example `1.2.0`.
11+
12+
If the version is missing, ask for it before making changes.
13+
14+
## Steps
15+
16+
1. Check the worktree with `git status --short`. If there are uncommitted changes or untracked files, stop and ask the user how to proceed. Do not stash, discard, or include them.
17+
18+
2. Confirm the current branch is the repository's default branch. Set the release branch to `release/v<version>` and check both local and remote branches. If it already exists, stop and ask the user how to proceed.
19+
20+
3. Create and switch to `release/v<version>` from the clean default-branch HEAD.
21+
22+
4. Update only the `version` field in `packages/rstack/package.json` to `<version>`.
23+
24+
5. Review the diff and confirm it contains exactly the one version-field change above.
25+
26+
6. Create a commit with this exact message: `release: v<version>`.
27+
28+
7. Push the branch to `origin`. Recheck that the branch being pushed is `release/v<version>` and never push the default branch directly.
29+
30+
8. Create a pull request against the default branch. In Codex, use the GitHub connector/plugin; use another available GitHub workflow only when the connector is unavailable. Use `release: v<version>` as the PR title.
31+
32+
Return the pull request URL.

0 commit comments

Comments
 (0)