chore: Append commit hash to version

This commit is contained in:
Sidharth Vinod
2023-09-22 10:40:42 +05:30
parent 60d0dba648
commit 882350311b

View File

@@ -1,9 +1,16 @@
#!/usr/bin/env bash
set -euxo pipefail
pushd packages/mermaid
# Append commit hash to version
jq ".version = .version + \"+${COMMIT_REF:0:7}\"" package.json > package.tmp.json
mv package.tmp.json package.json
popd
pnpm build
echo "$COMMIT_REF"
# Clone the Mermaid Live Editor repository
rm -rf mermaid-live-editor