From f0a852112dd4130df70e6507adeeafdfe881f9b5 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 19 Sep 2014 17:22:05 -0300 Subject: [PATCH 1/2] Automated way to publish a new release --- Gruntfile.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 8844d8e30..aa217c964 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -10,9 +10,31 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-angular-gettext'); grunt.loadNpmTasks('grunt-jsdoc'); + grunt.loadNpmTasks('grunt-release'); // Project Configuration grunt.initConfig({ + release: { + options: { + bump: true, + file: 'package.json', + add: true, + commit: true, + tag: true, + push: true, + pushTags: true, + npm: false, + npmtag: true, + tagName: 'v<%= version %>', + commitMessage: 'New release v<%= version %>', + tagMessage: 'Version <%= version %>', + github: { + repo: 'bitpay/copay', + usernameVar: 'GITHUB_USERNAME', //ENVIRONMENT VARIABLE that contains Github username + passwordVar: 'GITHUB_PASSWORD' //ENVIRONMENT VARIABLE that contains Github password + } + } + }, shell: { prod: { options: { From fc8d1ca23ee472ebcd9af7f7232156a7918415ad Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 19 Sep 2014 17:33:55 -0300 Subject: [PATCH 2/2] update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7248c5c0f..3bea5238f 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ ], "devDependencies": { "async": "0.9.0", + "bitcore": "0.1.36", "blanket": "1.1.6", "browser-pack": "2.0.1", "browser-request": "0.3.2", @@ -64,8 +65,8 @@ "grunt-contrib-watch": "0.5.3", "grunt-jsdoc": "^0.5.7", "grunt-markdown": "0.5.0", - "bitcore": "0.1.36", "grunt-mocha-test": "0.8.2", + "grunt-release": "^0.7.0", "grunt-shell": "0.6.4", "istanbul": "0.2.10", "karma": "0.12.9",