diff --git a/gruntfile.js b/gruntfile.js index 0a1b6f1ce..3ae8f22bc 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -131,6 +131,7 @@ module.exports = function (grunt) { } }) + grunt.loadNpmTasks('grunt-check-clean') grunt.loadTasks('tasks') require('load-grunt-tasks')(grunt) @@ -141,6 +142,7 @@ module.exports = function (grunt) { grunt.registerTask('release', 'Build, bump and publish to NPM.', function (type) { grunt.task.run([ + 'check_clean', 'npm-contributors', 'bump:' + (type || 'patch') + ':bump-only', 'build', diff --git a/package.json b/package.json index 0ffdcc382..fe3fd7087 100644 --- a/package.json +++ b/package.json @@ -397,6 +397,7 @@ "grunt-browserify": "^5.0.0", "grunt-bump": "^0.8.0", "grunt-cli": "^1.1.0", + "grunt-check-clean": "^0.1.2", "grunt-contrib-watch": "^1.0.0", "grunt-conventional-changelog": "^6.0.1", "grunt-conventional-github-releaser": "^1.0.0",