Skip to content

Commit

Permalink
Merge pull request #6773 from keymanapp/chore/increment-version-force
Browse files Browse the repository at this point in the history
chore: fix version increment for force parameter
  • Loading branch information
mcdurdin authored Jun 15, 2022
2 parents 2588443 + 65a616a commit 259eea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/build/version/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 259eea6

Please sign in to comment.