Skip to content

Commit 206fc10

Browse files
committed
Fix CI/CD failures for Node.js 14 and 20
- Fix ESLint glob pattern in package.json (remove extra quotes) - Add npm upgrade step for Node.js 14 to handle lockfileVersion 3 - Resolves ESLint "No files matching" error on Node 20 - Resolves npm ci "Cannot read property 'ip-address'" error on Node 14
1 parent a43ba0e commit 206fc10

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
node-version: ${{ matrix.node-version }}
3434
cache: 'npm'
3535

36+
- name: Upgrade npm for Node 14
37+
if: matrix.node-version == '14.x'
38+
run: npm install -g npm@7
39+
3640
- name: Install dependencies
3741
run: npm ci
3842

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"prepublish": "npm install -g typescript && npm run build",
5151
"test": "NODE_ENV=test mocha --recursive --require ts-node/register test/**/*.ts",
5252
"prettier": "prettier --write ./src/**/*.ts --config .prettierrc.yaml",
53-
"lint": "eslint 'src/**/*.ts'",
53+
"lint": "eslint src/**/*.ts",
5454
"build": "rm -rf build typings && prettier --write ./src/**/*.ts --config .prettierrc.yaml && tsc -p .",
5555
"build-raw": "rm -rf build typings && tsc -p ."
5656
}

0 commit comments

Comments
 (0)