mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
Disable the publish renderer for canary builds
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:');
|
||||
|
||||
Reference in New Issue
Block a user