Automated way to publish a new release

This commit is contained in:
Gustavo Maximiliano Cortez 2014-09-19 17:22:05 -03:00
parent e2af5ac782
commit f0a852112d
1 changed files with 22 additions and 0 deletions

View File

@ -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: {