From 7adc16bf1dc75a5854ad400a04fcfe5dc1868260 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 16 Jun 2025 23:29:02 +0800 Subject: [PATCH] fix: run puppeteer in the GitHub Actions environment --- .github/workflows/release-pdf.yml | 1 - docs/.vitepress/vitepress-pdf.config.ts | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-pdf.yml b/.github/workflows/release-pdf.yml index 20a816a..6ff0bd4 100644 --- a/.github/workflows/release-pdf.yml +++ b/.github/workflows/release-pdf.yml @@ -22,7 +22,6 @@ jobs: - name: Run a command with nix develop run: | nix develop .#export-pdf --ignore-environment --command bash -c ' - export PUPPETEER_ARGS="--no-sandbox --disable-setuid-sandbox" pnpm install pnpm export-pdf ' diff --git a/docs/.vitepress/vitepress-pdf.config.ts b/docs/.vitepress/vitepress-pdf.config.ts index 2c0a60a..a5f1623 100644 --- a/docs/.vitepress/vitepress-pdf.config.ts +++ b/docs/.vitepress/vitepress-pdf.config.ts @@ -27,6 +27,15 @@ const footerTemplate = `