0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Add minor improvements on frontend and exporter builds

This commit is contained in:
Andrey Antukh 2023-12-22 12:40:24 +01:00 committed by Alonso Torres
parent bc91c46a9a
commit 0b53dc627f
2 changed files with 9 additions and 5 deletions

View file

@ -2,7 +2,7 @@
set -ex
CURRENT_VERSION=$1;
export CURRENT_VERSION=$1;
yarn install
rm -rf target

View file

@ -2,10 +2,14 @@
set -ex
CURRENT_VERSION=$1;
BUILD_DATE=$(date -R);
CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)};
EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS;
export CURRENT_VERSION=$1;
export BUILD_DATE=$(date -R);
export CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)};
export EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS;
# Some cljs reacts on this environment variable for define more
# performant code on macros (example: rumext)
export NODE_ENV=production;
yarn install || exit 1;
yarn run build:clean || exit 1;