Skip to content

Commit 587723b

Browse files
committed
Configure npm to enforce standard project Node.js version
This will produce an error if a contributor attempts to run an npm command in the project using an unsupported version of Node.js.
1 parent e877818 commit 587723b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/check-npm.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ on:
55
push:
66
paths:
77
- ".github/workflows/check-npm.ya?ml"
8+
- "**/.npmrc"
89
- "**/package.json"
910
- "**/package-lock.json"
1011
pull_request:
1112
paths:
1213
- ".github/workflows/check-npm.ya?ml"
14+
- "**/.npmrc"
1315
- "**/package.json"
1416
- "**/package-lock.json"
1517
schedule:

.github/workflows/check-packaging-ncc-typescript-npm.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
paths:
66
- ".github/workflows/check-packaging-ncc-typescript-npm.yml"
7+
- ".npmrc"
78
- "lerna.json"
89
- "package.json"
910
- "package-lock.json"
@@ -12,6 +13,7 @@ on:
1213
pull_request:
1314
paths:
1415
- ".github/workflows/check-packaging-ncc-typescript-npm.yml"
16+
- ".npmrc"
1517
- "lerna.json"
1618
- "package.json"
1719
- "package-lock.json"

.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# See: https://docs.npmjs.com/cli/configuring-npm/npmrc
2+
3+
engine-strict = true

0 commit comments

Comments
 (0)