Merge pull request #6773 from keymanapp/chore/increment-version-force

chore: fix version increment for force parameter
This commit is contained in:
Marc Durdin 2022-06-15 13:07:01 +10:00 • committed by GitHub
commit 259eea6c87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ const main = async (): Promise<void> => {
// Increment the version number if history has any entries
//
if(argv._.includes('version') && changeCount > 0) {
if(argv._.includes('version') && (changeCount > 0 || argv.force)) {
logInfo(`# Incrementing version from ${version}`);
const newVersion = incrementVersion();
logInfo(`# New version is ${newVersion}\n`);