mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
20 lines
384 B
Bash
Executable File
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;
|
|
pnpm install || exit 1;
|
|
|
|
pnpm run build:storybook || exit 1;
|