Skip to content

Instantly share code, notes, and snippets.

@marcelkalveram
Created January 31, 2017 11:48
Show Gist options
  • Save marcelkalveram/02997c1804fca0c7ee0186977260f7eb to your computer and use it in GitHub Desktop.
Save marcelkalveram/02997c1804fca0c7ee0186977260f7eb to your computer and use it in GitHub Desktop.
'use strict'
let exec = require('child_process').exec
let packagePath = '../package.json'
let packageInfo = require(packagePath)
let version = packageInfo.version
exec(`git tag -a v${version} -m "auto release"`, 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