55 lines
982 B
Markdown
55 lines
982 B
Markdown
---
|
|
name: ship
|
|
description: Commit, tag with the next version, and push to remote.
|
|
disable-model-invocation: true
|
|
allowed-tools: Bash(git *), Bash(pnpm *), Skill
|
|
---
|
|
|
|
## Instructions
|
|
|
|
Commit current changes, create the next version tag, and push everything to remote.
|
|
|
|
### Step 1 — Commit
|
|
|
|
Use the `/commit` skill to stage and commit changes. Pass along any user arguments as the commit message.
|
|
|
|
```
|
|
/commit $ARGUMENTS
|
|
```
|
|
|
|
### Step 2 — Tag
|
|
|
|
Get the latest tag and increment the patch number (e.g., `0.9.27` → `0.9.28`). Create the tag:
|
|
|
|
```bash
|
|
git tag --sort=-v:refname | head -1
|
|
```
|
|
|
|
```bash
|
|
git tag <next-version>
|
|
```
|
|
|
|
### Step 3 — Push
|
|
|
|
Push the commit and tag to remote:
|
|
|
|
```bash
|
|
git push && git push --tags
|
|
```
|
|
|
|
### Step 4 — Verify
|
|
|
|
Confirm the tag exists on the pushed commit:
|
|
|
|
```bash
|
|
git log --oneline -1 --decorate
|
|
```
|
|
|
|
## User arguments
|
|
|
|
```text
|
|
$ARGUMENTS
|
|
```
|
|
|
|
If the user provided arguments, treat them as the commit message or guidance for what to commit.
|