cli icon indicating copy to clipboard operation
cli copied to clipboard

Getting notified that publish fails even when build succeeds (better alternative to || true)

Open jedwards1211 opened this issue 5 years ago • 0 comments

So the readme says setup will use the command semantic-release || true for CircleCI... But it sucks to realize a month later that a build failed to publish even though it passed.

When you think about it, the || true seems questionable on its face. I forget why it's recommended but I'm guessing semantic-release has a nonzero exit code when the branch is excluded.

I think there should be a CLI flag to suppress the nonzero exit code when appropriate, so that we can avoid using || true.

EDIT: Just realized I'm on version 15, maybe semantic-release 17 notifies us if the release is failing?

jedwards1211 avatar Apr 11 '20 16:04 jedwards1211