From 989ee184702c401697f2e219782129201bcab08a Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 18 Jul 2022 16:15:13 +1000 Subject: [PATCH] Hotfix: force install internal deps (#4032) --- .../devops/scripts/deployment/buildDeployablePackages.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/devops/scripts/deployment/buildDeployablePackages.sh b/packages/devops/scripts/deployment/buildDeployablePackages.sh index a587fb15ed..6638052b38 100755 --- a/packages/devops/scripts/deployment/buildDeployablePackages.sh +++ b/packages/devops/scripts/deployment/buildDeployablePackages.sh @@ -14,6 +14,11 @@ PACKAGES=$(${TUPAIA_DIR}/scripts/bash/getDeployablePackages.sh) cd ${TUPAIA_DIR} yarn install --frozen-lockfile +# "postinstall" hook may only fire if the dependency tree changes. This may not happen on feature branches based off dev, +# because our AMI performs a yarn install already. In this case we can end up in a situation where "internal-depenednecies" +# packages' dists are not rebuilt. This will be fixed by changing to a single yarn:build command in a future PR. +yarn build:internal-dependencies + # Inject environment variables from LastPass LASTPASS_EMAIL=$($DIR/fetchParameterStoreValue.sh LASTPASS_EMAIL) LASTPASS_PASSWORD=$($DIR/fetchParameterStoreValue.sh LASTPASS_PASSWORD)