Skip to content

Commit bb0b097

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 937f105 commit bb0b097

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

Diff for: .github/workflows/check-markdown-task.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
paths:
1313
- ".github/workflows/check-markdown-task.ya?ml"
1414
- ".markdown-link-check.json"
15+
- "**/.npmrc"
1516
- "package.json"
1617
- "package-lock.json"
1718
- "Taskfile.ya?ml"
@@ -24,6 +25,7 @@ on:
2425
paths:
2526
- ".github/workflows/check-markdown-task.ya?ml"
2627
- ".markdown-link-check.json"
28+
- "**/.npmrc"
2729
- "package.json"
2830
- "package-lock.json"
2931
- "Taskfile.ya?ml"

Diff for: .github/workflows/check-npm-task.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
push:
88
paths:
99
- ".github/workflows/check-npm-task.ya?ml"
10+
- "**/.npmrc"
1011
- "**/package.json"
1112
- "**/package-lock.json"
1213
- "Taskfile.ya?ml"
1314
pull_request:
1415
paths:
1516
- ".github/workflows/check-npm-task.ya?ml"
17+
- "**/.npmrc"
1618
- "**/package.json"
1719
- "**/package-lock.json"
1820
- "Taskfile.ya?ml"

Diff for: .github/workflows/check-prettier-formatting-task.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- ".github/workflows/check-prettier-formatting-task.ya?ml"
1010
- "Taskfile.ya?ml"
11+
- "**/.npmrc"
1112
- "**/.prettierignore"
1213
- "**/.prettierrc*"
1314
# CSS
@@ -104,6 +105,7 @@ on:
104105
paths:
105106
- ".github/workflows/check-prettier-formatting-task.ya?ml"
106107
- "Taskfile.ya?ml"
108+
- "**/.npmrc"
107109
- "**/.prettierignore"
108110
- "**/.prettierrc*"
109111
# CSS

Diff for: .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)