From 57bf9e3ab140afe19183f44b9f0795126a2cb48a Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Tue, 21 Jul 2015 09:29:01 +0200 Subject: [PATCH] chore(grunt): Update npm-publish task. This now reflects the latest changes to how stable and canary branches are handled. --- gruntfile.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 11712cdd4..2285372d7 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -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'