Skip to content

Commit 8a307f0

Browse files
authored
Merge pull request #593 from per1234/enforce-engines_node
Configure npm to enforce standard project Node.js version
2 parents 8c6d50a + 2fbcacf commit 8a307f0

32 files changed

+73
-0
lines changed

.github/workflows/check-clang-format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "other/clang-format-configuration/scripts/convert-clang-format-configuration.js"
99
- "other/clang-format-configuration/testdata/**"
1010
- "other/clang-format-configuration/.clang-format"
11+
- ".npmrc"
1112
- "package.json"
1213
- "package-lock.json"
1314
- "Taskfile.ya?ml"
@@ -17,6 +18,7 @@ on:
1718
- "other/clang-format-configuration/scripts/convert-clang-format-configuration.js"
1819
- "other/clang-format-configuration/testdata/**"
1920
- "other/clang-format-configuration/.clang-format"
21+
- ".npmrc"
2022
- "package.json"
2123
- "package-lock.json"
2224
- "Taskfile.ya?ml"

.github/workflows/check-eslint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ on:
66
paths:
77
- ".github/workflows/check-eslint.yml"
88
- "workflow-templates/assets/check-javascript/.eslintrc.yml"
9+
- ".npmrc"
910
- "package.json"
1011
- "package-lock.json"
1112
- "Taskfile.ya?ml"
1213
pull_request:
1314
paths:
1415
- ".github/workflows/check-eslint.yml"
1516
- "workflow-templates/assets/check-javascript/.eslintrc.yml"
17+
- ".npmrc"
1618
- "package.json"
1719
- "package-lock.json"
1820
- "Taskfile.ya?ml"

.github/workflows/check-javascript-task.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- ".github/workflows/check-javascript-task.ya?ml"
1010
- ".eslintignore"
1111
- "**/.eslintrc*"
12+
- ".npmrc"
1213
- "package.json"
1314
- "package-lock.json"
1415
- "Taskfile.ya?ml"
@@ -18,6 +19,7 @@ on:
1819
- ".github/workflows/check-javascript-task.ya?ml"
1920
- ".eslintignore"
2021
- "**/.eslintrc*"
22+
- ".npmrc"
2123
- "package.json"
2224
- "package-lock.json"
2325
- "Taskfile.ya?ml"

.github/workflows/check-markdown-task.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- ".github/workflows/check-markdown-task.ya?ml"
1010
- ".markdown-link-check.json"
11+
- ".npmrc"
1112
- "package.json"
1213
- "package-lock.json"
1314
- "Taskfile.ya?ml"
@@ -20,6 +21,7 @@ on:
2021
paths:
2122
- ".github/workflows/check-markdown-task.ya?ml"
2223
- ".markdown-link-check.json"
24+
- ".npmrc"
2325
- "package.json"
2426
- "package-lock.json"
2527
- "Taskfile.ya?ml"

.github/workflows/check-npm-task.yml

Lines changed: 2 additions & 0 deletions
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"

.github/workflows/check-prettier-formatting-task.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
paths:
99
- ".github/workflows/check-prettier-formatting-task.ya?ml"
10+
- ".npmrc"
1011
- "Taskfile.ya?ml"
1112
- "**/.prettierignore"
1213
- "**/.prettierrc*"
@@ -103,6 +104,7 @@ on:
103104
pull_request:
104105
paths:
105106
- ".github/workflows/check-prettier-formatting-task.ya?ml"
107+
- ".npmrc"
106108
- "Taskfile.ya?ml"
107109
- "**/.prettierignore"
108110
- "**/.prettierrc*"

.github/workflows/check-taskfiles.yml

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

.github/workflows/check-workflows-task.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
push:
77
paths:
88
- ".github/workflows/*.ya?ml"
9+
- ".npmrc"
910
- "Taskfile.ya?ml"
1011
- "workflow-templates/*.ya?ml"
1112
pull_request:
1213
paths:
1314
- ".github/workflows/*.ya?ml"
15+
- ".npmrc"
1416
- "Taskfile.ya?ml"
1517
- "workflow-templates/*.ya?ml"
1618
schedule:

.github/workflows/sync-labels-npm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
paths:
88
- ".github/workflows/sync-labels-npm.ya?ml"
99
- ".github/label-configuration-files/*.ya?ml"
10+
- ".npmrc"
1011
- "package.json"
1112
- "package-lock.json"
1213
pull_request:
1314
paths:
1415
- ".github/workflows/sync-labels-npm.ya?ml"
1516
- ".github/label-configuration-files/*.ya?ml"
17+
- ".npmrc"
1618
- "package.json"
1719
- "package-lock.json"
1820
schedule:

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/npm/.npmrc
2+
# See: https://docs.npmjs.com/cli/configuring-npm/npmrc
3+
4+
engine-strict=true

0 commit comments

Comments
 (0)