Skip to content

Commit

Permalink
Configure npm to enforce standard project Node.js version
Browse files Browse the repository at this point in the history
This will produce an error if a contributor attempts to run an npm command in the project using an unsupported version
of Node.js.
  • Loading branch information
per1234 committed Aug 1, 2024
1 parent 5827836 commit 2a94baa
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-action-metadata-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ on:
push:
paths:
- ".github/workflows/check-action-metadata-task.ya?ml"
- ".npmrc"
- "action.ya?ml"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
pull_request:
paths:
- ".github/workflows/check-action-metadata-task.ya?ml"
- ".npmrc"
- "action.ya?ml"
- "package.json"
- "package-lock.json"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-markdown-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- ".github/workflows/check-markdown-task.ya?ml"
- ".markdown-link-check.json"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand All @@ -19,6 +20,7 @@ on:
paths:
- ".github/workflows/check-markdown-task.ya?ml"
- ".markdown-link-check.json"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-npm-dependencies-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- ".licensed.ya?ml"
- "Taskfile.ya?ml"
- "**/.gitmodules"
- "**/.npmrc"
- "**/package.json"
- "**/package-lock.json"
pull_request:
Expand All @@ -22,6 +23,7 @@ on:
- ".licensed.ya?ml"
- "Taskfile.ya?ml"
- "**/.gitmodules"
- "**/.npmrc"
- "**/package.json"
- "**/package-lock.json"
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-npm-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
push:
paths:
- ".github/workflows/check-npm-task.ya?ml"
- "**/.npmrc"
- "**/package.json"
- "**/package-lock.json"
- "Taskfile.ya?ml"
pull_request:
paths:
- ".github/workflows/check-npm-task.ya?ml"
- "**/.npmrc"
- "**/package.json"
- "**/package-lock.json"
- "Taskfile.ya?ml"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-prettier-formatting-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- ".github/workflows/check-prettier-formatting-task.ya?ml"
- "Taskfile.ya?ml"
- "**/.npmrc"
- "**/.prettierignore"
- "**/.prettierrc*"
# CSS
Expand Down Expand Up @@ -103,6 +104,7 @@ on:
paths:
- ".github/workflows/check-prettier-formatting-task.ya?ml"
- "Taskfile.ya?ml"
- "**/.npmrc"
- "**/.prettierignore"
- "**/.prettierrc*"
# CSS
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-tsconfig-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
paths:
- ".github/workflows/check-tsconfig-task.ya?ml"
- "**/tsconfig*.json"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
pull_request:
paths:
- ".github/workflows/check-tsconfig-task.ya?ml"
- "**/tsconfig*.json"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-typescript-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- ".github/workflows/check-typescript-task.ya?ml"
- ".eslintignore"
- "**/.eslintrc*"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand All @@ -21,6 +22,7 @@ on:
- ".github/workflows/check-typescript-task.ya?ml"
- ".eslintignore"
- "**/.eslintrc*"
- ".npmrc"
- "package.json"
- "package-lock.json"
- "Taskfile.ya?ml"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sync-labels-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ on:
paths:
- ".github/workflows/sync-labels-npm.ya?ml"
- ".github/label-configuration-files/*.ya?ml"
- ".npmrc"
- "package.json"
- "package-lock.json"
pull_request:
paths:
- ".github/workflows/sync-labels-npm.ya?ml"
- ".github/label-configuration-files/*.ya?ml"
- ".npmrc"
- "package.json"
- "package-lock.json"
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-typescript-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- ".github/workflows/test-typescript-task.ya?ml"
- ".npmrc"
- "jest.config.js"
- "package.json"
- "package-lock.json"
Expand All @@ -17,6 +18,7 @@ on:
pull_request:
paths:
- ".github/workflows/test-typescript-task.ya?ml"
- ".npmrc"
- "jest.config.js"
- "package.json"
- "package-lock.json"
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# See: https://docs.npmjs.com/cli/configuring-npm/npmrc

engine-strict = true

0 comments on commit 2a94baa

Please sign in to comment.