Skip to content

Instantly share code, notes, and snippets.

@marcelkalveram
Created January 31, 2017 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelkalveram/fd409cd5e48471c8e3430e98d7aacff9 to your computer and use it in GitHub Desktop.
Save marcelkalveram/fd409cd5e48471c8e3430e98d7aacff9 to your computer and use it in GitHub Desktop.
// git commit -m '[version] bump
'use strict'
let exec = require('child_process').exec
let packagePath = '../package.json'
let packageInfo = require(packagePath)
let version = packageInfo.version
exec(`git commit -m "[release] v${version}"`, function (err, stdout, stderr) {
console.log('git result:', stdout)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment