diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..aa7f3bf --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,24 @@ +module.exports = function(grunt) { + + grunt.loadNpmTasks('grunt-release'); + grunt.loadNpmTasks('grunt-tag'); + + grunt.initConfig({ + release: { + options: { + npm: false, + afterReleaseTasks: ['tag'], + github: { + repo: "AirVantage/node-tech-time", + usernameVar: 'GITHUB_USERNAME', + passwordVar: 'GITHUB_PASSWORD' + } + } + }, + tag: { + options: { + tagName: '<%= version.match(/\\d*/) %>.x' + } + } + }); +}; diff --git a/package.json b/package.json index 6758ea1..b82b8a8 100644 --- a/package.json +++ b/package.json @@ -7,5 +7,10 @@ "repository": { "type": "git", "url": "https://github.com/AirVantage/node-tech-time.git" + }, + "devDependencies": { + "grunt": "^0.4.5", + "grunt-release": "^0.11.0", + "grunt-tag": "^0.1.0" } }