Closed HosseinSalmanian closed 2 days ago
Because you asked it to make a release. Without other information it defaults to a patch bump.
@TimothyJones Thanks for the response.
Can you provide more details for how can change the default in order to adhering conventional commit ? We want to bump version only base on previous commits ( commits between HEAD and latest tagged version).
If you don’t want to make a release, just don’t run the tool.
Reading between the lines- it's not designed to be run in CI on every push. If you’re doing that, you’ll need to build extra tooling.
What I did when I had that use case was to do a dry run, read the changlog out of the output, and skip the release if it was empty.
@TimothyJones
Thanks again, We made the release conditionally based on --dry-run output as you suggested.
You're welcome! I'll close this for now, please feel free to re-open if you have any problems.
Suppose we have the following git commit tree in our branch.
if we run commit-and-tag-version a new commit and tag will be created and the version will bump to v1.0.1 even there is no fix type commit between tag v1.0.0 and the HEAD.
Why commit-and-tag-version behave like this?