12-package.json: update when release candidate created

This commit is contained in:
rkiel
2017-10-10 20:23:06 -04:00
parent f753b647d3
commit b09accebd0
6 changed files with 15 additions and 15 deletions

View File

@@ -21,14 +21,14 @@ module Shared
exit
end
def update_package_json (version)
def update_package_json (version, message)
if File.exist? 'package.json'
package_json = File.read('package.json')
json = JSON.parse(package_json)
json['version'] = version
File.write('package.json', JSON.pretty_generate(json))
git_add 'package.json'
git_commit version
git_commit message
end
end
@@ -49,11 +49,11 @@ module Shared
end
def git_fetch
run_cmd "git fetch origin && git fetch origin --tags"
run_cmd "git fetch origin -p && git fetch origin --tags"
end
def git_remote_merge ( branch )
run_cmd "git merge origin/#{branch}"
run_cmd "git merge origin/#{branch} -m 'merged by release'"
end
def is_remote_branch (branch)