Merge pull request #5332 from mermaid-js/sidv/installFix

Fix netlify deploy
This commit is contained in:
Sidharth Vinod 2024-02-27 11:38:02 +05:30 committed by GitHub
commit 69266bbfe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -1,11 +1,13 @@
#!/usr/bin/env bash
set -euxo pipefail
export COREPACK_ENABLE_STRICT='0'
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
yarn link
popd
pnpm run -r clean
@ -20,11 +22,11 @@ cd mermaid-live-editor
# We have to use npm instead of yarn because it causes trouble in netlify
# Install dependencies
npm install
yarn install
# Link local mermaid to live editor
npm link ../packages/mermaid
yarn link mermaid
# Force Build the site
npm run build -- --force
yarn run build -- --force