I have an action that uses the puppeteer-cli package from npm, which downloads a copy of Chrome as part of its installation process.
Right now it’s downloading Chrome on every run, which makes me sad. I’d like to use https://github.com/actions/cache to avoid this, but I can’t figure out how to do that.
Anyone got any tips? Here’s my action: https://github.com/simonw/til/blob/1e29c3fe5e90c29b0e71d87dba805484ceb4393c/.github/workflows/build.yml
I ended up having to install puppeteer-cli like this:
sudo npm install -g puppeteer-cli --unsafe-perm=true