Prevent puppeteer from downloading Chromium
In production we would use the Chromium package has provided by Debian
and hence there is no need to download a bundled chromium. On CI
Chromium is provided as well.
Ask puppeteer to skip download. That can be achieved either by setting
the environment variable PUPPETEER_SKIP_CHROMIUM_DOWNLOAD or via a
.nmprc local to the repository. The later seems more robust but would
require developers to have the system version installed so this must be
manually set in production and CI. This option requires providing a
Chromium executable path in the YAML Puppeteer config.
$ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install puppeteer@^0.13.0 > email@example.com install mediawiki/services/chromium-render/node_modules/puppeteer > node install.js **INFO** Skipping Chromium download. "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" was set in npm config.
The /deploy repository needs a similar adjustement.