Skip to content

Instantly share code, notes, and snippets.

@madtrick
Last active August 29, 2015 14:15
Show Gist options
  • Save madtrick/efa846e057cca32ff635 to your computer and use it in GitHub Desktop.
Save madtrick/efa846e057cca32ff635 to your computer and use it in GitHub Desktop.
Bump version in node package
#!/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