Skip to content

Commit 7dfa9df

Browse files
authored
Merge pull request #417 from per1234/enforce_node
Configure npm to enforce standard project Node.js version
2 parents 188d204 + 7301d29 commit 7dfa9df

9 files changed

+20
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ on:
88
paths:
99
- ".github/workflows/check-action-metadata-task.ya?ml"
1010
- "action.ya?ml"
11+
- ".npmrc"
1112
- "package.json"
1213
- "package-lock.json"
1314
- "Taskfile.ya?ml"
1415
pull_request:
1516
paths:
1617
- ".github/workflows/check-action-metadata-task.ya?ml"
1718
- "action.ya?ml"
19+
- ".npmrc"
1820
- "package.json"
1921
- "package-lock.json"
2022
- "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-toc-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-toc-task.ya?ml"
10+
- ".npmrc"
1011
- "package.json"
1112
- "package-lock.json"
1213
- "README.md"
1314
pull_request:
1415
paths:
1516
- ".github/workflows/check-toc-task.ya?ml"
17+
- ".npmrc"
1618
- "package.json"
1719
- "package-lock.json"
1820
- "README.md"

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ on:
66
push:
77
paths:
88
- ".github/workflows/*.ya?ml"
9+
- ".npmrc"
910
- "package.json"
1011
- "package-lock.json"
1112
- "Taskfile.ya?ml"
1213
pull_request:
1314
paths:
1415
- ".github/workflows/*.ya?ml"
16+
- ".npmrc"
1517
- "package.json"
1618
- "package-lock.json"
1719
- "Taskfile.ya?ml"

.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)