Skip to content

Commit

Permalink
Merge pull request #148 from opentable/multiple-publish-bug
Browse files Browse the repository at this point in the history
only remove the package once published to all registries
  • Loading branch information
matteofigus committed Nov 24, 2015
2 parents 69d0d1b + 87b345d commit 37ae3f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/facade/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module.exports = function(dependencies){
}
} else {
logger.log(format(strings.messages.cli.PUBLISHED, options.route.green).yellow);
return local.cleanup(options.path, callback);
return callback();
}
});
};
Expand All @@ -124,7 +124,9 @@ module.exports = function(dependencies){
componentRoute = format('{0}/{1}/{2}', registryNormalised, component.name, component.version);

putComponentToRegistry({ route: componentRoute, path: compressedPackagePath}, done);
}, reallyDoneThisTime);
}, function(err){
local.cleanup(compressedPackagePath, reallyDoneThisTime);
});
});
});
};
Expand Down

0 comments on commit 37ae3f0

Please sign in to comment.