Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
grunt.registerTask('release-it', 'Release repository.', function(increment) {
var done = this.async();
var options = this.options();
options.increment = increment || options.increment;
options.verbose = grunt.option('verbose') === true || options.verbose;
options.debug = grunt.option('debug') === true || options.debug;
options.force = grunt.option('force') === true || options.force;
options['dry-run'] = grunt.option('no-write') === true || options['dry-run'];
release.execute(options).catch(grunt.fail.warn).finally(done);
});
};
return function(done) {
releaseIt.execute(args.options).catch(handleErrors).finally(done);
}
}
]).then(function (results) {
var changelog = results[0];
option.tagAnnotation = "Release %s\n" + changelog;
return releaseIt.execute(option);
});
}