penpot/frontend/scripts/build-storybook
2026-01-20 12:26:39 +01:00

20 lines
384 B
Bash
Executable File

#!/usr/bin/env bash
# NOTE: this script should be called from the parent directory to
# properly work.
set -ex
export BUILD_TS=$(date +%s);
export BUILD_DATE=$(date -R);
export VERSION=${1:-develop};
export VERSION_TAG="${VERSION}-${BUILD_TS}";
export NODE_ENV=production;
corepack enable;
corepack install || exit 1;
yarn install || exit 1;
yarn run build:storybook || exit 1;