🎉 Detach storybook from the frontend build process

This commit is contained in:
David Barragán Merino
2025-10-28 20:55:30 +01:00
parent ad15887d57
commit 15e2b35afc
5 changed files with 123 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# NOTE: this script should be called from the parent directory to
# properly work.
export CURRENT_VERSION=$1;
export BUILD_DATE=$(date -R);
export CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)};
export TS=$(date +%s);
export NODE_ENV=production;
echo "Current path:"
echo $PATH
set -ex
corepack enable;
corepack install || exit 1;
yarn install || exit 1;
yarn run build:storybook || exit 1;