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.
1 KiB
1 KiB
| name | description | args | flags | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| release | Release a new version of a module |
|
|
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
- Bump version: Bumps the version in
package.jsonand other necessary files. - Update CHANGELOG.md: Generates a new entry in the changelog based on commit history.
- Create git tag: Creates a new git tag for the release.
- Push tag: Pushes the new tag to the remote repository.
- Trigger CI release: The new tag should trigger the CI/CD release pipeline.
Implementation
This command is implemented by the release.sh script.
/bin/bash ../scripts/release.sh "$@"