Skip to content

Commit 0431578

Browse files
Update CI to use Node.js 18+ (required by Puppeteer v22)
- Update GitHub Actions workflow to test on Node.js 18.x, 20.x, 22.x - Add engines field to package.json specifying Node.js >=18 requirement - Puppeteer v22 requires Node.js 18+, so older versions are no longer supported - Fixes CI failures caused by lockfileVersion 3 incompatibility with npm 6.x
1 parent 23eaf85 commit 0431578

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/node.js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [14.x, 16.x, 18.x]
15+
# Node.js 18+ required for Puppeteer v22
16+
node-version: [18.x, 20.x, 22.x]
1617

1718
steps:
1819
- uses: actions/checkout@v3

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "3.13.0",
44
"main": "index.js",
55
"types": "index.d.ts",
6+
"engines": {
7+
"node": ">=18"
8+
},
69
"scripts": {
710
"test": "mocha --reporter-option maxDiffSize=0 --exit",
811
"build": "./scripts/build.sh"

0 commit comments

Comments
 (0)