Skip to content

Commit

Permalink
feature(publish) if publish failed, do it again
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jan 30, 2015
1 parent 4cd82fa commit abc5b4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
execute(cmd, emitter, callback);
},

function (callback) {
function publish(callback) {
var v = 'v' + version,
repo = getRepoName(info),
owner = getOwner(info),
Expand All @@ -93,6 +93,10 @@
grizzly(null, data, function(error) {
if (!error)
emitter.emit('data', 'release: ok');
else {
console.log('Error releasing on github. Trying again.');
publish(callback);
}

callback(error);
});
Expand Down

0 comments on commit abc5b4f

Please sign in to comment.