mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Updated error message, and fail on analyze
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user