Closed kjhandy closed 8 years ago
I've found the source of the problem. I factored out my grunt tasks to individual files so that grunt-bump is found in grunt/tasks/bump.js. For whatever reason, it sees my file, runs it (as I can see console.log's), and then runs node_modules/grunt-bump/tasks/bump.js, which is why I always see the defaults.
Just in case anyone has the same problem, I found my mistake. I had a config variable in one of my other grunt tasks that was overwriting grunt.config causing it to overwrite my options object with the default one when it got to the registerTask method.
Even though I've specified pushTo: 'origin', when I run grunt bump it tries to 'git push upstream master'.
Running "bump" task Running grunt-bump in dry mode!
Done, without errors.