Comparing version 0.0.3 to 0.0.8
13
cli.js
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
function puts(error, stdout, stderr) { | ||
sys.puts(stdout) | ||
sys.puts(stdout); | ||
}; | ||
@@ -53,6 +53,9 @@ | ||
if(git){ | ||
exec('git tag ' + pkg.version, puts); | ||
exec('git add package.json', puts); | ||
exec('git commit -m "bump to "'+ pkg.version, puts); | ||
exec('git push origin master', puts); | ||
setTimeout(function(){ | ||
exec('git tag ' + pkg.version, puts); | ||
exec('git add package.json', puts); | ||
exec('git commit -m "bump to "'+ pkg.version, puts); | ||
exec('git push --tags', puts); | ||
exec('git push origin master', puts); | ||
}, 100); | ||
} | ||
@@ -59,0 +62,0 @@ } catch(e) { |
{ | ||
"name": "bump-tag", | ||
"version": "0.0.3", | ||
"version": "0.0.8", | ||
"description": "Bump version and add tag", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
3429
67