Updated error message, and fail on analyze

This commit is contained in:
Hector Ramos
2018-09-21 10:24:43 -07:00
parent c90b48b4ad
commit e8663ffaba
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -55,9 +55,14 @@ require('shelljs/global');
const buildTag = process.env.CIRCLE_TAG;
const otp = process.env.NPM_CONFIG_OTP;
if (!buildTag) {
echo('Error: We publish only from git tags');
exit(1);
}
let match = buildTag.match(/^v(\d+\.\d+)\.\d+(?:-.+)?$/);
if (!match) {
echo('Error: We publish only from stable branches');
echo('Error: We publish only from release version git tags');
exit(1);
}
// 0.33