mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	chore: Append commit hash to version
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user