Skip to content

Commit

Permalink
chore(grunt): Update npm-publish task.
Browse files Browse the repository at this point in the history
This now reflects the latest changes to how stable
and canary branches are handled.
  • Loading branch information
dignifiedquire committed Jul 21, 2015
1 parent 0e0801a commit 57bf9e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ module.exports = function (grunt) {
requires: ['build'],
abortIfDirty: true,
tag: function () {
var minor
minor = parseInt(grunt.config('pkg.version').split('.')[1], 10)
if (minor % 2) {
var version = grunt.config('pkg.version')
if (version.match(/rc/)) {
return 'canary'
} else {
return 'latest'
Expand Down

0 comments on commit 57bf9e3

Please sign in to comment.