Skip to content

Commit

Permalink
forgot to run ncc
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericoGauz committed Mar 3, 2021
1 parent bca7e4e commit fad45ab
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/actions/bumpVersion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,18 @@ do {

// tags come from latest to oldest
const highestVersion = tags[0];
console.log(highestVersion);
console.log(`Highest version found: ${highestVersion}.`);

// should SEMVER_LEVEL default to BUILD?
const semanticVersionLevel = core.getInput('SEMVER_LEVEL', {require: true});
let semanticVersionLevel = core.getInput('SEMVER_LEVEL', {require: true});

// SEMVER_LEVEL defaults to BUILD
// it actually would fall to build anyway, but I think it is better to make it explicity
if (!semanticVersionLevel || !Object.values(functions.semanticVersionLevels)
.find(v => v === semanticVersionLevel)) {
// eslint-disable-next-line max-len, semi
console.log(`Invalid input for 'SEMVER_LEVEL': ${semanticVersionLevel},defaulting to: ${functions.semanticVersionLevels.build}`)
semanticVersionLevel = functions.semanticVersionLevels.build;
}
const newVersion = functions.incrementVersion(highestVersion, semanticVersionLevel);

core.setOutput('VERSION', newVersion);
Expand Down

0 comments on commit fad45ab

Please sign in to comment.