Files
mermaid/scripts/editor.bash
Sidharth Vinod 60d0dba648 Print commit ref
2023-09-22 10:25:42 +05:30

24 lines
477 B
Bash
Executable File

#!/usr/bin/env bash
set -euxo pipefail
pnpm build
echo "$COMMIT_REF"
# Clone the Mermaid Live Editor repository
rm -rf mermaid-live-editor
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
cd mermaid-live-editor
# We have to use npm instead of yarn because it causes trouble in netlify
# Install dependencies
npm install
# Link local mermaid to live editor
npm link ../packages/mermaid
# Force Build the site
npm run build -- --force