Fix test-publish CI test when no packages exist to publish

This commit is contained in:
fabioberger 2019-07-25 11:30:55 +02:00
parent b86473f3c7
commit 398097900c

View File

@ -76,6 +76,7 @@ export const utils = {
return updatedPackages;
},
async getLernaUpdatedPackagesAsync(shouldIncludePrivate: boolean): Promise<UpdatedPackage[]> {
try {
const result = await execAsync(`${constants.lernaExecutable} updated --json`, {
cwd: constants.monorepoRootPath,
});
@ -88,6 +89,9 @@ export const utils = {
return updatedPublicPackages;
}
return updatedPackages;
} catch (err) {
return [];
}
},
async getNextPackageVersionAsync(
currentVersion: string,