diff --git a/scripts/hab-build-and-push.sh b/scripts/hab-build-and-push.sh
index 286dd48c01d614c024a6dc0e9383189140b4f0ac..fff4639ce6809374f75b19fcb33118d517b6ea73 100755
--- a/scripts/hab-build-and-push.sh
+++ b/scripts/hab-build-and-push.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-BASE_ASSETS_PATH=$1
-TARGET_S3_PATH=$2
+export BASE_ASSETS_PATH=$1
+export TARGET_S3_PATH=$2
 
 # To build + push to S3 run:
 # hab studio run "bash scripts/hab-build-and-push.sh"
@@ -13,7 +13,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
 pushd "$DIR/.."
 
-mkdir -p .yarn
 mkdir -p node_modules
 mkdir -p build
 
@@ -25,8 +24,8 @@ rm /usr/bin/env
 ln -s "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env
 hab pkg install -b core/coreutils core/bash core/node core/yarn core/aws-cli
 
-yarn install --cache-folder .yarn
-GENERATE_SMOKE_TESTS=true yarn build -- --output-path build
+yarn install
+GENERATE_SMOKE_TESTS=true yarn build --output-path build
 mkdir build/pages
 mv build/*.html build/pages