diff --git a/.github/workflows/update-pdfs-on-develop.yml b/.github/workflows/update-pdfs-on-develop.yml index 2a62393007f..b6ea601dd9e 100644 --- a/.github/workflows/update-pdfs-on-develop.yml +++ b/.github/workflows/update-pdfs-on-develop.yml @@ -32,7 +32,7 @@ jobs: sudo apt-get install ./wkhtmltopdf.deb - name: Build all pdfs - run: npm run build-all-pdfs + run: npm run build-all-pdfs-ci - run: git status - run: git pull diff --git a/package.json b/package.json index 5bfb9fb440a..928bf142fd1 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,9 @@ "build": "gatsby build --prefix-paths", "serve-build": "gatsby serve --prefix-paths", "update-icons": "git submodule update --init --remote && node scripts/createIconTypes.js && node scripts/createIconNames.js", - "build-pdf": "python3 scripts/pdf/generate_pdf.py", - "build-all-pdfs": "for i in product_docs/docs/**/*/ ; do echo \"$i\"; python3 scripts/pdf/generate_pdf.py ${i%} || exit 1; done", + "build-pdf": "docker-compose -f docker/docker-compose.build-pdf.yaml run --rm --entrypoint scripts/pdf/generate_pdf.py pdf-builder", + "build-all-pdfs": "for i in product_docs/docs/**/*/ ; do echo \"$i\"; yarn build-pdf ${i%} || exit 1; done", + "build-all-pdfs-ci": "for i in product_docs/docs/**/*/ ; do echo \"$i\"; python3 scripts/pdf/generate_pdf.py ${i%} || exit 1; done", "fix-mtimes": "python3 scripts/source/git-restore-mtime.py", "count": "find product_docs/docs/ advocacy_docs/ external_sources/ -name '*.mdx' | wc -l", "heroku-postbuild": "gatsby build",