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
+2
View File
@@ -676,6 +676,8 @@ workflows:
tags:
only: /v[0-9]+(\.[0-9]+)*(\-rc(\.[0-9]+)?)?/
requires:
- analyze
- test_detox_end_to_end
- test_javascript
- test_objc
- test_android
+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