successfully exit in local and throw in CI
Since `vale` may not be installed locally, we can successfully exit. Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com> Signed-off-by: Ismail M <37075892+ismailmmd@users.noreply.github.com>
This commit is contained in:
@@ -74,7 +74,7 @@ async function exitIfMissingVale() {
|
||||
console.log(
|
||||
`Language linter (vale) was not found. Please install vale linter (https://vale.sh/docs/vale-cli/installation/).\n`,
|
||||
);
|
||||
process.exit(1);
|
||||
process.exit(process.env.CI ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user