Skip to content

Commit 71d3b4e

Browse files
committed
Fix document publishing GitHub Action
mermaid-filter depends on a deprecated version of puppeteer, which results in puppeteer no longer finding a suitable version of Chromium. See puppeteer/puppeteer#9533 for others facing this issue. Forcing npm to use the most recent release of puppeteer (version 21) resolves this problem. We should revert the workflow to one that doesn't text-insert a dependency and just directly npm installs mermaid-filter once mermaid-js/mermaid-cli#627 has been resolved, a new release of mermaid-cli been produced, and mermaid-filter having picked up that new release.
1 parent 78a90e0 commit 71d3b4e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ jobs:
2020
run: sudo python3 -m pip install gitpython pandocfilters
2121

2222
- name: Install mermaid diagram filter
23-
run: sudo npm install --global mermaid-filter
23+
run: |
24+
git clone https://github.com/raghur/mermaid-filter/
25+
cd mermaid-filter
26+
sed -i '1s/{/{ "overrides": { "puppeteer": "^21" },/' package.json
27+
sed -i '1s/^\/\/ //' index.js
28+
npm install --loglevel verbose
29+
sudo npm link --loglevel verbose
30+
cd ..
2431
2532
- name: Build documentation
2633
run: cd doc/doxygen-root && make && touch html/.nojekyll

0 commit comments

Comments
 (0)