diff --git a/.github/workflows/render-diagrams.yml b/.github/workflows/render-diagrams.yml index 1e6648d..de19413 100644 --- a/.github/workflows/render-diagrams.yml +++ b/.github/workflows/render-diagrams.yml @@ -23,7 +23,7 @@ jobs: run: npm ci - name: Install Puppeteer for rendering - run: npm install puppeteer --no-save + run: npm install puppeteer@24.37.5 --no-save - name: Render Mermaid to SVG run: npx -y @mermaid-js/mermaid-cli -i "docs/diagrams/*.mmd" -o docs/diagrams -f svg diff --git a/scripts/render-local.ps1 b/scripts/render-local.ps1 index 52d68cb..ecf45f8 100644 --- a/scripts/render-local.ps1 +++ b/scripts/render-local.ps1 @@ -148,9 +148,9 @@ if (-not $SkipChromiumDownload) { Write-Output 'Installing puppeteer (this will download Chromium). This can take several minutes.' $success = $false for ($try=1; $try -le $pptInstallRetries; $try++) { - Write-Output "Attempt $try of $($pptInstallRetries): npm install puppeteer --no-audit --no-fund" + Write-Output "Attempt $try of $($pptInstallRetries): npm install puppeteer@24.37.5 --no-audit --no-fund" try { - npm install puppeteer --no-audit --no-fund + npm install puppeteer@24.37.5 --no-audit --no-fund if ($LASTEXITCODE -eq 0) { $success = $true; break } Write-Warning "npm exited with code $LASTEXITCODE" } catch {