Skip to content

Commit

Permalink
fix(logging): better logging for publication failures (#4999)
Browse files Browse the repository at this point in the history
Publication failures have occasionally been difficult to root cause.
  • Loading branch information
bcoe committed Mar 15, 2023
1 parent 0576f93 commit 10ac19e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mono-repo-publish/src/bin/mono-repo-publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ const publishCustomCommand: yargs.CommandModule<{}, PublishCustomArgs> = {
const submodules = core.listChangedSubmodules(files, argv['exclude-files']);
const errors = core.publishCustom(submodules, argv['script']);
if (errors.length) {
for (const error of errors) {

This comment has been minimized.

Copy link
@Sirflyzoner

Sirflyzoner Aug 12, 2023

packages/mono-repo-publish/src/bin/mono-repo-publish.ts

console.error('----- publication failure -----');
console.error(error);
console.error('-----');
}
throw Error('some publications failed, see logs');
}
},
Expand Down

0 comments on commit 10ac19e

Please sign in to comment.