diff --git a/.circleci/configurations/test_workflows/testAll.yml b/.circleci/configurations/test_workflows/testAll.yml index a359329d207db0..a52e5aab29f44a 100644 --- a/.circleci/configurations/test_workflows/testAll.yml +++ b/.circleci/configurations/test_workflows/testAll.yml @@ -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: diff --git a/.circleci/configurations/test_workflows/testAndroid.yml b/.circleci/configurations/test_workflows/testAndroid.yml index 6a71b24ae4c8e3..83a1d0e36c99c9 100644 --- a/.circleci/configurations/test_workflows/testAndroid.yml +++ b/.circleci/configurations/test_workflows/testAndroid.yml @@ -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: diff --git a/.circleci/configurations/test_workflows/testIOS.yml b/.circleci/configurations/test_workflows/testIOS.yml index 5c3766a5b15aed..a877f050813c62 100644 --- a/.circleci/configurations/test_workflows/testIOS.yml +++ b/.circleci/configurations/test_workflows/testIOS.yml @@ -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: diff --git a/scripts/releases/utils/version-utils.js b/scripts/releases/utils/version-utils.js index e37c74e0036121..d1ff37238708fb 100644 --- a/scripts/releases/utils/version-utils.js +++ b/scripts/releases/utils/version-utils.js @@ -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-') ||