Last active
August 29, 2015 14:15
-
-
Save madtrick/efa846e057cca32ff635 to your computer and use it in GitHub Desktop.
Bump version in node package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
version = ARGV[0] || raise('pass version as first argument') | |
def execute(cmd) | |
raise unless system cmd | |
end | |
execute "npm version #{version} -m 'Bump to version: v#{version}'" | |
execute "git push" | |
execute "git push --tags" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment