Publish logic in Grunt