Skip to content

Commit c8f9548

Browse files
laulujanSleeplessByte
authored andcommitted
Add Error to check ENV version vs package.json
1 parent 36a1376 commit c8f9548

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/pr-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ let package = JSON.parse(packageFile);
146146
const packageVersion = package['devDependencies']['prettier'].replace(/[^0-9a-zA-Z.]/g, '')
147147

148148
if (shell.env['EXERCISM_PRETTIER_VERSION'] !== packageVersion){
149-
shell.echo(`\n==========\nWorkflow EXERCISM_PRETTIER_VERSION does not match pacakge.json prettier version ${packageVersion}\n`);
149+
throw new Error(`Workflow EXERCISM_PRETTIER_VERSION does not match pacakge.json prettier version ${packageVersion}`)
150150
}
151151

152152

0 commit comments

Comments
 (0)