| name | bump |
| description | Bump the package version in pubspec.yaml and add a CHANGELOG entry. Defaults to patch bump. |
Bump the package version and update the changelog.
Steps
- Read the current version from
pubspec.yaml.
- Parse the version as
major.minor.patch.
- Determine bump type from
$ARGUMENTS (patch, minor, or major). Default to patch if not specified.
- Compute the new version:
- patch: increment patch (e.g., 2.0.1 → 2.0.2)
- minor: increment minor, reset patch (e.g., 2.0.1 → 2.1.0)
- major: increment major, reset minor and patch (e.g., 2.0.1 → 3.0.0)
- Update
version: in pubspec.yaml.
- Add a new section at the top of
CHANGELOG.md with the new version number.
- Generate changelog entries from recent commits since the last tag.
- Regenerate API docs:
scripts/doc.sh
- Open the docs:
open doc/api/index.html
- Do NOT commit — let the user review and commit separately.