Skip to content

Commit

Permalink
fix: check publishedSucceed before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Sep 8, 2022
1 parent dfc9a7c commit 4339e34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ export async function runPublish({
);
let lines = changesetPublishOutput.stdout.matchAll(publishPackageRegex);

if (!publishedSucceed) {
return { published: false };
}

if (tool !== "root") {
let packagesByName = new Map(packages.map((x) => [x.packageJson.name, x]));

Expand Down

0 comments on commit 4339e34

Please sign in to comment.