From 3171a24c5965c94043c26cb5d743c84d092f0de7 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Sun, 24 Sep 2023 16:19:27 -0400 Subject: [PATCH] List failed packages as summary at end of unstable release --- workspace/unstable-release/src/publish.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/workspace/unstable-release/src/publish.js b/workspace/unstable-release/src/publish.js index 056e2915..bce68f53 100644 --- a/workspace/unstable-release/src/publish.js +++ b/workspace/unstable-release/src/publish.js @@ -21,6 +21,8 @@ async function publish() { /** @type {string[]} */ const errors = []; + /** @type {string[]} */ + const erroredPackages = []; for (let workspace of publicWorkspaces) { // @ts-ignore @@ -63,6 +65,7 @@ async function publish() { if (isErr(err)) { errors.push(err.stderr); + erroredPackages.push(name); } continue; } @@ -73,6 +76,14 @@ async function publish() { if (errors.length) { console.error("Errors were encountered while publishing these packages"); errors.forEach((error) => void console.log(error)); + + console.info( + '------------------------------------------\n' + + ' Packages that failed to publish\n' + + '------------------------------------------\n' + ); + + erroredPackages.forEach((error) => void console.log(error)); process.exit(1); } }