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 Oct 16, 2024
1 parent 937f105 commit bb0b097
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-markdown-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,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 @@ -24,6 +25,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-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,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 @@ -8,6 +8,7 @@ on:
paths:
- ".github/workflows/check-prettier-formatting-task.ya?ml"
- "Taskfile.ya?ml"
- "**/.npmrc"
- "**/.prettierignore"
- "**/.prettierrc*"
# CSS
Expand Down Expand Up @@ -104,6 +105,7 @@ on:
paths:
- ".github/workflows/check-prettier-formatting-task.ya?ml"
- "Taskfile.ya?ml"
- "**/.npmrc"
- "**/.prettierignore"
- "**/.prettierrc*"
# CSS
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 bb0b097

Please sign in to comment.