This document describes the step-by-step process for releasing a new version of git-commitai-cli.
The release pipeline is fully automated via GitHub Actions when pushing to the main branch.
First, make your source code changes, stage them, and commit them to the main branch:
git add .
git commit -m "feat(ai): update models"
git push origin mainCheck your GitHub repository to ensure the CI build and test suite pass successfully on the main branch.
- Open CHANGELOG.md and add a new release entry at the top, following the existing format:
## [X.Y.Z] - YYYY-MM-DD ### Added / Changed / Fixed - Description of changes
- Open package.json and bump the version field:
"version": "X.Y.Z"
Create a commit containing only the changelog and version bump. By convention, the commit message should be the new version number:
git add package.json CHANGELOG.md
git commit -m "X.Y.Z"Push the release commit to GitHub:
git push origin mainThis push will trigger the .github/workflows/ci.yml workflow which will:
- Run lint, tests, and build checks.
- Automatically create and push the Git tag
vX.Y.Z. - Automatically publish the new package version to npm using OIDC Trusted Publishing and provenance.