chore(ci): fix prepare dist (#5214)

This commit is contained in:
Ben 2023-11-08 09:43:36 +00:00 committed by GitHub
parent 607ad06971
commit 73f37c2477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,11 @@
#!/bin/bash -e
yarn --pure-lockfile
app=${1:-trading}
envCmd="envCmd="yarn env-cmd -f ./apps/${app}/.env.${2:-mainnet}"
envCmd="envCmd="yarn -f ./apps/${app}/.env.${2:-mainnet}"
yarn install
if [ "${app}" = "trading" ]; then
$envCmd yarn nx export trading
DIST_LOCATION=dist/apps/trading/exported
DIST_LOCATION=dist/apps/trading/exported/
else
$envCmd yarn nx build ${app}
DIST_LOCATION=dist/apps/${app}