beforeBump tasks don't exit immediately
Hi, I was using grunt-release with a beforeBump task to run the tests of my project before a release, but when these tasks error, the deferred.reject doesn't get caught or exit correctly, so regardless of the grunt status, the release continues.
Here's an example of the gruntfile.js
grunt.initConfig({
// Task configuration.
release: {
options: {
beforeBump: ['test']
}
}
});
So when I run
grunt release
It runs the tests, but if they fail, it just continues with the release.
Is there a reason why we don't just call grunt.fail.warn here? Because this will exit the task immediately...
I too want to run my tests pre release/bump and exit on failure, any updates regarding this?
Thanks for the report. Makes total sense not to continue any further. Will have a look at implementing this.