Fix test-publish CI test when no packages exist to publish
This commit is contained in:
parent
b86473f3c7
commit
398097900c
@ -76,6 +76,7 @@ export const utils = {
|
|||||||
return updatedPackages;
|
return updatedPackages;
|
||||||
},
|
},
|
||||||
async getLernaUpdatedPackagesAsync(shouldIncludePrivate: boolean): Promise<UpdatedPackage[]> {
|
async getLernaUpdatedPackagesAsync(shouldIncludePrivate: boolean): Promise<UpdatedPackage[]> {
|
||||||
|
try {
|
||||||
const result = await execAsync(`${constants.lernaExecutable} updated --json`, {
|
const result = await execAsync(`${constants.lernaExecutable} updated --json`, {
|
||||||
cwd: constants.monorepoRootPath,
|
cwd: constants.monorepoRootPath,
|
||||||
});
|
});
|
||||||
@ -88,6 +89,9 @@ export const utils = {
|
|||||||
return updatedPublicPackages;
|
return updatedPublicPackages;
|
||||||
}
|
}
|
||||||
return updatedPackages;
|
return updatedPackages;
|
||||||
|
} catch (err) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async getNextPackageVersionAsync(
|
async getNextPackageVersionAsync(
|
||||||
currentVersion: string,
|
currentVersion: string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user