Skip to content

Commit

Permalink
chore(dev): Fix release task.
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jan 9, 2015
1 parent b19db8c commit ca635bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = (grunt) ->


grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
pkgFile: 'package.json'

files: [
Expand Down Expand Up @@ -66,6 +67,7 @@ module.exports = (grunt) ->

bump:
options:
updateConfigs: ['pkg']
commitFiles: ['package.json', 'CHANGELOG.md']
commitMessage: 'chore: release v%VERSION%'
pushTo: 'upstream'
Expand Down Expand Up @@ -111,13 +113,14 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-npm'
grunt.loadNpmTasks 'grunt-bump'
grunt.loadNpmTasks 'grunt-auto-release'
grunt.loadNpmTasks 'grunt-conventional-changelog'

grunt.registerTask 'test', ['karma:single']
grunt.registerTask 'default', ['jshint', 'jscs', 'test']
grunt.registerTask 'release', 'Bump the version and publish to npm.', (type) ->
grunt.task.run [
"bump:#{type||'patch'}"
'changelog'
'npm-contributors'
"bump:#{type||'patch'}"
'npm-publish'
]

0 comments on commit ca635bd

Please sign in to comment.