plugins/claude/core/commands/release.md
Snider 31d7509bea
feat: /core:release version and release workflow (#87)
Adds a new `/core:release` command to streamline the release process for modules.

This command automates the following workflow:
- Bumps the version in `package.json` (and `gemini-extension.json` if it exists).
- Generates a `CHANGELOG.md` entry from conventional commit messages.
- Commits the changes with a `chore(release): vX.Y.Z` message.
- Creates and pushes a new git tag to trigger the CI release.

A `--preview` flag is included to allow for a dry run of the release process without making any changes.
2026-02-02 07:21:59 +00:00

44 lines
1 KiB
Markdown

---
name: release
description: Release a new version of a module
args: [patch|minor|major]
flags:
preview:
description: Show what would happen without actually making a release
type: boolean
default: false
---
# Release new version
Streamlines the release process for modules.
## Commands
### Bump patch version
`/core:release patch`
### Bump minor version
`/core:release minor`
### Bump major version
`/core:release major`
### Preview release
`/core:release patch --preview`
## Workflow
1. **Bump version**: Bumps the version in `package.json` and other necessary files.
2. **Update CHANGELOG.md**: Generates a new entry in the changelog based on commit history.
3. **Create git tag**: Creates a new git tag for the release.
4. **Push tag**: Pushes the new tag to the remote repository.
5. **Trigger CI release**: The new tag should trigger the CI/CD release pipeline.
## Implementation
This command is implemented by the `release.sh` script.
```bash
/bin/bash ../scripts/release.sh "$@"
```