mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 17:54:13 +01:00
chore: Append commit hash to version
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euxo pipefail
|
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
|
pnpm build
|
||||||
|
|
||||||
echo "$COMMIT_REF"
|
|
||||||
|
|
||||||
# Clone the Mermaid Live Editor repository
|
# Clone the Mermaid Live Editor repository
|
||||||
rm -rf mermaid-live-editor
|
rm -rf mermaid-live-editor
|
||||||
|
|||||||
Reference in New Issue
Block a user