Skip to content

Commit

Permalink
ci: fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
awsluja committed Jun 5, 2023
1 parent ee219f2 commit 084984e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .circleci/publish-codebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 084984e

Please sign in to comment.