1 | var shell = require('shelljs');
|
2 |
|
3 | module.exports = function(grunt) {
|
4 |
|
5 | grunt.initConfig({
|
6 | shell: {
|
7 | changelog: {
|
8 | command: 'npm run changelog; git add CHANGELOG.md'
|
9 | }
|
10 | },
|
11 | release: {
|
12 | options: {
|
13 | npm: true,
|
14 | tagName: 'v<%= version %>',
|
15 | commitMessage: 'v<%= version %>',
|
16 | beforeRelease: ['shell:changelog'],
|
17 | github: {
|
18 | repo: 'DomoApps/domoapps-cli',
|
19 | usernameVar: 'GITHUB_USERNAME',
|
20 | passwordVar: 'GITHUB_PASSWORD'
|
21 | }
|
22 | }
|
23 | }
|
24 | });
|
25 |
|
26 | grunt.loadNpmTasks('grunt-shell');
|
27 | grunt.loadNpmTasks('grunt-release');
|
28 | };
|