You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readme says that if no commits are present, new_tag should be undefined. However it appears that when no commits are present, it is using default_bump instead.
Output from GitHub Actions run:
Specifically these logs:
Previous tag was v0.2.0, previous version was 0.2.0.
Analysis of 0 commits complete: no release
New version is 0.3.0.
The text was updated successfully, but these errors were encountered:
new_tag - The value of the newly calculated tag. Note that if there hasn't been any new commit, this will be undefined.
new_version - The value of the newly created tag without the prefix. Note that if there hasn't been any new commit, this will be undefined.
but also says
default_bump (optional) - Which type of bump to use when none is explicitly provided when commiting to a release branch (default: patch). You can also set false to avoid generating a new tag when none is explicitly provided. Can be patch, minor or major.
default_prerelease_bump (optional) - Which type of bump to use when none is explicitly provided when commiting to a prerelease branch (default: prerelease). You can also set false to avoid generating a new tag when none is explicitly provided. Can be prerelease, prepatch, preminor or premajor.
overall the code is doing this
// Determine if we should continue with tag creation based on main vs prerelease branch
let shouldContinue = true;
if (isPrerelease) {
if (!bump && defaultPreReleaseBump === 'false') {
shouldContinue = false;
}
} else {
if (!bump && defaultBump === 'false') {
shouldContinue = false;
}
}
since the default value for bump or defaultBump are patch and prerelease, the shouldContinue is always true!!
I still don't fully understand how it should behave !
The readme says that if no commits are present,
new_tag
should be undefined. However it appears that when no commits are present, it is usingdefault_bump
instead.Output from GitHub Actions run:
Specifically these logs:
The text was updated successfully, but these errors were encountered: