From 084984e8b30a4775cba8a87654b8c13e490b2770 Mon Sep 17 00:00:00 2001 From: awsluja Date: Mon, 5 Jun 2023 19:26:47 -0400 Subject: [PATCH] ci: fix publish --- .circleci/publish-codebuild.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/publish-codebuild.sh b/.circleci/publish-codebuild.sh index bf60e4be5cd..58367ee7e66 100755 --- a/.circleci/publish-codebuild.sh +++ b/.circleci/publish-codebuild.sh @@ -13,6 +13,11 @@ git fetch --tags https://github.com/aws-amplify/amplify-cli function lernaPublishExitOnFailure { # exit on failure set -e + if [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then + # registy URL update changes .yarnrc.yml file + git update-index --assume-unchanged .yarnrc.yml + fi + # run lerna publish with the args that were passed to this function # duplicate stdout to a temp file # grep the temp file for the lerna err token and return exit 1 if found (-v option inverts grep exit code)