Skip to content

Commit

Permalink
chore(root): Fix for publish-preview-packages.mjs
Browse files Browse the repository at this point in the history
If no public packages are affected by the current PR do not publish anything.
  • Loading branch information
SokratisVidros committed Sep 29, 2024
1 parent 0d8b8e8 commit b771d69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/publish-preview-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ try {
return memo;
}, []);

if (affectedPackagePaths.length === 0) {
process.exit(0);
}

const command = `pnpx pkg-pr-new publish ${affectedPackagePaths.join(' ')}`;
console.log(await myExec(command));
} catch (err) {
Expand Down

0 comments on commit b771d69

Please sign in to comment.