From dbe3a7c7dbe71f9d5c774a55702909022c887a99 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 23 Nov 2023 13:29:28 +0000 Subject: [PATCH] [ACS-6370] temporary pin ADF cli to js-api 7.2.0 (#9112) --- scripts/update-version.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/scripts/update-version.sh b/scripts/update-version.sh index 4fb39eba46..9ca2de06c1 100755 --- a/scripts/update-version.sh +++ b/scripts/update-version.sh @@ -64,7 +64,7 @@ version_change() { version_js_change() { echo "====== Alfresco JS-API version $1 =====" - VERSION_JS_API=$1 + JS_API_VERSION=$1 DIFFERENT_JS_API=true } @@ -92,9 +92,15 @@ update_dependencies() { for PROJECT in ${projects[@]} do if [[ $PROJECT == "js-api" ]]; then - PROJECT="@alfresco\/$PROJECT" - echo "├─ $PROJECT@$JS_API_VERSION" - update_dependency_version $PROJECT $JS_API_VERSION + if [[ $1 == "cli" ]]; then + echo "├─ hotfix: Pinning CLI to 7.2.0" + PROJECT="@alfresco\/$PROJECT" + update_dependency_version $PROJECT "7.2.0" + else + PROJECT="@alfresco\/$PROJECT" + echo "├─ $PROJECT@$JS_API_VERSION" + update_dependency_version $PROJECT $JS_API_VERSION + fi else PROJECT="@alfresco\/adf-$PROJECT" echo "├─ $PROJECT@$VERSION" @@ -111,7 +117,7 @@ update_library_dependencies() { fi cd $DESTDIR - update_dependencies + update_dependencies $1 } update_root_dependencies() { @@ -168,7 +174,7 @@ do if $JS_API == true; then if $DIFFERENT_JS_API == true; then - update_component_js_version $PROJECT $VERSION_JS_API + update_component_js_version $PROJECT $JS_API_VERSION else update_component_js_version $PROJECT $VERSION fi @@ -179,7 +185,7 @@ update_root_dependencies if $JS_API == true; then if $DIFFERENT_JS_API == true; then - update_root_js_api_version $VERSION_JS_API + update_root_js_api_version $JS_API_VERSION else update_root_js_api_version $VERSION fi