How to make GitLab's CI/CD job fail based on text in console output?
问题 I am using Lerna to manage a multipackage repository and in my deployment job I use Lerna's publish command. For me if code is changed in a package it should always publish a new version to our Artifactory and fail the job if nothing was published, but the publish command will exit with success code (I guess it's 0 code) even when no packages where published: $ npx lerna publish from-package --yes lerna notice cli v3.13.1 lerna info ci enabled lerna notice from-package No unpublished release