hg-auto-semver
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -17,8 +17,6 @@ #!/usr/bin/env node | ||
function bump(type) { | ||
execSync(`npm version ${type}`); | ||
return execSync(`npm version ${type}`); | ||
} | ||
function publish() { | ||
const version = require('./package.json').version; | ||
function publish(version) { | ||
execSync(`hg commit --config ui.username=jenkins@coveo.com -m 'Release v${version}'`); | ||
@@ -44,8 +42,8 @@ execSync(`hg tag --config ui.username=jenkins@coveo.com ${PACKAGE_VERSION} -f`); | ||
console.log('Branch name contains "fix-", bumping a PATCH version'); | ||
bump(Version.PATCH); | ||
publish(); | ||
const version = bump(Version.PATCH); | ||
publish(version); | ||
} else if (featureRegex.test(branch)) { | ||
console.log('Branch name contains "feature-", bumping a MINOR version'); | ||
bump(Version.MINOR); | ||
publish(); | ||
const version = bump(Version.MINOR); | ||
publish(version); | ||
} | ||
@@ -59,2 +57,1 @@ } else { | ||
} | ||
{ | ||
"name": "hg-auto-semver", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Automatically bump versions according to hg parent branch name.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4290
44