PromucFlow_constructor/app/client/build.sh
2020-02-27 11:25:55 +00:00

12 lines
339 B
Bash
Executable File

#!/bin/sh
GIT_SHA=$(eval git rev-parse HEAD)
GIT_BRANCH=$(git branch --no-color | grep -E '^\*' | sed 's/\*[^a-z]*//g')
# RELEASE="${GIT_BRANCH}_${GIT_SHA}"
# RELEASE=$(echo "$RELEASE" | sed -e 's/[\/\\\ .]/\-/g')
# echo $RELEASE
REACT_APP_SENTRY_RELEASE=$GIT_SHA craco --max-old-space-size=2048 build --config craco.build.config.js