Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Cache Puppeteer artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Aug 3, 2023
1 parent 61337c5 commit 464d3d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
id: cache
with:
path: node_modules
key: ${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
key: ${{ matrix.node }}-${{ hashFiles('**/package-lock.json', '**/.puppeteerrc.js') }}
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node }}
Expand Down
8 changes: 8 additions & 0 deletions .puppeteerrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { join } = require('path');

/**
* @type {import("puppeteer").Configuration}
*/
module.exports = {
cacheDirectory: join(__dirname, 'node_modules', '.puppeteer'),
};

0 comments on commit 464d3d1

Please sign in to comment.