Skip to content

Commit 283a0ff

Browse files
authored
Merge pull request #126 from per1234/engine-strict
Configure npm to enforce standard project Node.js version
2 parents 1cd85b0 + da91305 commit 283a0ff

7 files changed

+15
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
- "**.mkdn"
1717
- "**.mdown"
1818
- "**.markdown"
19+
- "**/.npmrc"
1920
pull_request:
2021
paths:
2122
- ".github/workflows/check-markdown-task.ya?ml"
@@ -28,6 +29,7 @@ on:
2829
- "**.mkdn"
2930
- "**.mdown"
3031
- "**.markdown"
32+
- "**/.npmrc"
3133
schedule:
3234
# Run every Tuesday at 8 AM UTC to catch breakage caused by external changes.
3335
- cron: "0 8 * * TUE"

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

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

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

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

.github/workflows/check-taskfiles.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ on:
88
- ".github/workflows/check-taskfiles.ya?ml"
99
- "package.json"
1010
- "package-lock.json"
11+
- "**/.npmrc"
1112
- "**/Taskfile.ya?ml"
1213
- "**/DistTasks.ya?ml"
1314
pull_request:
1415
paths:
1516
- ".github/workflows/check-taskfiles.ya?ml"
1617
- "package.json"
1718
- "package-lock.json"
19+
- "**/.npmrc"
1820
- "**/Taskfile.ya?ml"
1921
- "**/DistTasks.ya?ml"
2022
schedule:

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

+2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ on:
99
- "package.json"
1010
- "package-lock.json"
1111
- "Taskfile.ya?ml"
12+
- "**/.npmrc"
1213
pull_request:
1314
paths:
1415
- ".github/workflows/*.ya?ml"
1516
- "package.json"
1617
- "package-lock.json"
1718
- "Taskfile.ya?ml"
19+
- "**/.npmrc"
1820
schedule:
1921
# Run every Tuesday at 8 AM UTC to catch breakage resulting from changes to the JSON schema.
2022
- cron: "0 8 * * TUE"

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

+2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ on:
1313
- ".github/label-configuration-files/*.ya?ml"
1414
- "package.json"
1515
- "package-lock.json"
16+
- "**/.npmrc"
1617
pull_request:
1718
paths:
1819
- ".github/workflows/sync-labels-npm.ya?ml"
1920
- ".github/label-configuration-files/*.ya?ml"
2021
- "package.json"
2122
- "package-lock.json"
23+
- "**/.npmrc"
2224
schedule:
2325
# Run daily at 8 AM UTC to sync with changes to shared label configurations.
2426
- cron: "0 8 * * *"

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