Disable the publish renderer for canary builds

This commit is contained in:
Josh Crowther
2018-05-10 13:18:38 -07:00
parent 7d4d479689
commit 95fee76b1c
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ const { argv } = require('yargs');
/**
* Release new versions to NPM
*/
await publishToNpm(updates, releaseType);
await publishToNpm(updates, releaseType, argv.canary ? 'canary': 'default');
/**
* If this wasn't a production release there
+3 -2
View File
@@ -56,7 +56,7 @@ async function publishPackage(pkg, releaseType) {
}
}
exports.publishToNpm = async (updatedPkgs, releaseType) => {
exports.publishToNpm = async (updatedPkgs, releaseType, renderer) => {
const taskArray = await Promise.all(
updatedPkgs.map(async pkg => {
const path = await mapPkgNameToPkgPath(pkg);
@@ -76,7 +76,8 @@ exports.publishToNpm = async (updatedPkgs, releaseType) => {
);
const tasks = new Listr(taskArray, {
concurrent: false,
exitOnError: false
exitOnError: false,
renderer
});
console.log('\r\nPublishing Packages to NPM:');