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

Update dependencies and Node versions #175

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16' ]
node: [ '16', '18', '20' ]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: node_modules
key: ${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
- uses: actions/setup-node@v2
key: ${{ matrix.node }}-${{ hashFiles('**/package-lock.json', '**/.puppeteerrc.js') }}
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
npm-version: 6
- if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm test
- if: github.event_name == 'release' && github.event.action == 'published' && matrix.node == '16'
- if: github.event_name == 'release' && github.event.action == 'published' && matrix.node == '20'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
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'),
};
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ your project.

# Development

[Volta](https://volta.sh/) is recommended (but not required) for managing the Node and NPM versions used in development.

## Useful resources

* https://www.w3.org/TR/1999/REC-xpath-19991116/
Expand Down
Loading