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)