diff --git a/index.js b/index.js index e594331..08d112b 100644 --- a/index.js +++ b/index.js @@ -213,11 +213,11 @@ function startGulp(name, opts) { }; gulp.task('release:checkout-releases', function(cb) { - var pjson = require('../../package.json'); - git.branch('releases/' + pjson.version + '-build', { + var tempBranch = 'releases/' + new Date().getTime() + '-build'; + git.branch(tempBranch, { args: '' }, function() { - git.checkout('releases/' + pjson.version + '-build', { + git.checkout(tempBranch, { args: '' }, cb); }); @@ -287,7 +287,7 @@ function startGulp(name, opts) { var release = function(importance, cb) { var bumper = 'release:bump:' + importance; return runsequence( - // Checkout the `releases-` branch + // Checkout the release temporal branch 'release:checkout-releases', // Merge the master branch 'release:merge-master', diff --git a/package.json b/package.json index eebfb34..60512f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitcore-build", - "version": "0.5.1", + "version": "0.5.2", "description": "A helper for common tasks to build bitcore modules'", "main": "index.js", "scripts": {