mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Adjust version parsing in release scripts, fix release dry runs in CI (#43568)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43568 Fixes to restore passing CI checks on main after D55027120. - Widen validation checks in version utils to accept `0.x.x` (as opposed to `0.[not-'0'].x`). - Use `tag: test` instead of `tag: latest` for dry run job params. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D55123739 fbshipit-source-id: 9f76dced4e7aa3ce87d6680cd7687ae443305331
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1fe82671e8
commit
d03b5dca74
@@ -8,7 +8,7 @@
|
||||
name: "prepare_release (dry run test)"
|
||||
version: "0.0.0"
|
||||
monorepo_packages_version: "0.0.0"
|
||||
tag: latest
|
||||
tag: test
|
||||
dry_run: true
|
||||
- prepare_hermes_workspace
|
||||
- build_android:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
name: "prepare_release (dry run test)"
|
||||
version: "0.0.0"
|
||||
monorepo_packages_version: "0.0.0"
|
||||
tag: latest
|
||||
tag: test
|
||||
dry_run: true
|
||||
- prepare_hermes_workspace
|
||||
- build_android:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
name: "prepare_release (dry run test)"
|
||||
version: "0.0.0"
|
||||
monorepo_packages_version: "0.0.0"
|
||||
tag: latest
|
||||
tag: test
|
||||
dry_run: true
|
||||
- prepare_hermes_workspace
|
||||
- build_android:
|
||||
|
||||
@@ -135,14 +135,17 @@ function validatePrealpha(version /*: Version */) {
|
||||
|
||||
function isStableRelease(version /*: Version */) /*: boolean */ {
|
||||
return (
|
||||
version.major === '0' && version.minor !== '0' && version.prerelease == null
|
||||
version.major === '0' &&
|
||||
!!version.minor.match(/^\d+$/) &&
|
||||
!!version.patch.match(/^\d+$/) &&
|
||||
version.prerelease == null
|
||||
);
|
||||
}
|
||||
|
||||
function isStablePrerelease(version /*: Version */) /*: boolean */ {
|
||||
return !!(
|
||||
version.major === '0' &&
|
||||
version.minor !== '0' &&
|
||||
version.minor.match(/^\d+$/) &&
|
||||
version.patch.match(/^\d+$/) &&
|
||||
(version.prerelease?.startsWith('rc.') ||
|
||||
version.prerelease?.startsWith('rc-') ||
|
||||
|
||||
Reference in New Issue
Block a user