From 434209af7d48df97203545d2fd01149fe5b4bc0e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 23 Jul 2024 14:07:46 +0200 Subject: [PATCH] :sparkles: Add timestamp to release build hash --- frontend/scripts/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/scripts/build b/frontend/scripts/build index 2b462db6a..4ac406cce 100755 --- a/frontend/scripts/build +++ b/frontend/scripts/build @@ -8,6 +8,7 @@ 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; +export TS=$(date +%s); # Some cljs reacts on this environment variable for define more # performant code on macros (example: rumext) @@ -17,7 +18,7 @@ yarn install || exit 1; rm -rf resources/public; rm -rf target/dist; -clojure -M:dev:shadow-cljs release main --config-merge "{:release-version \"${CURRENT_HASH}\"}" $EXTRA_PARAMS || exit 1 +clojure -M:dev:shadow-cljs release main --config-merge "{:release-version \"${CURRENT_HASH}-${TS}\"}" $EXTRA_PARAMS || exit 1 yarn run compile || exit 1; mkdir -p target/dist;