Skip to content

Commit

Permalink
chore: update Mermaid-CLI installation step in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leoli0605 committed May 16, 2024
1 parent 3aa0cfa commit 1f18221
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
build:
docs:
runs-on: ubuntu-latest
permissions:
contents: write # Required for pushing changes to the repository
Expand Down Expand Up @@ -43,7 +43,13 @@ jobs:

- uses: actions/setup-node@v4
- name: Install Mermaid-CLI
run: npm install -g @mermaid-js/mermaid-cli
run: |
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g @mermaid-js/mermaid-cli
- name: Generate README
run: make docs
Expand Down

0 comments on commit 1f18221

Please sign in to comment.