Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hg-auto-semver

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hg-auto-semver - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

15

bin/cli.js

@@ -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 {

}

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc