Skip to content

Commit 37dbf5b

Browse files
authored
Merge pull request #791 from per1234/enforce-node_js-version
Configure npm to enforce standard project Node.js version
2 parents 937f105 + 7a66fef commit 37dbf5b

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

Diff for: .github/workflows/check-markdown-task.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
paths:
1313
- ".github/workflows/check-markdown-task.ya?ml"
1414
- ".markdown-link-check.json"
15+
- "**/.npmrc"
1516
- "package.json"
1617
- "package-lock.json"
1718
- "Taskfile.ya?ml"
@@ -24,6 +25,7 @@ on:
2425
paths:
2526
- ".github/workflows/check-markdown-task.ya?ml"
2627
- ".markdown-link-check.json"
28+
- "**/.npmrc"
2729
- "package.json"
2830
- "package-lock.json"
2931
- "Taskfile.ya?ml"

Diff for: .github/workflows/check-mkdocs-task.yml

+11
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ on:
1313
push:
1414
paths:
1515
- ".github/workflows/check-mkdocs-task.ya?ml"
16+
- "**/.npmrc"
1617
- "Taskfile.ya?ml"
1718
- "mkdocs.ya?ml"
19+
- "package.json"
20+
- "package-lock.json"
1821
- "poetry.lock"
1922
- "pyproject.toml"
2023
- "docs/**"
@@ -24,8 +27,11 @@ on:
2427
pull_request:
2528
paths:
2629
- ".github/workflows/check-mkdocs-task.ya?ml"
30+
- "**/.npmrc"
2731
- "Taskfile.ya?ml"
2832
- "mkdocs.ya?ml"
33+
- "package.json"
34+
- "package-lock.json"
2935
- "poetry.lock"
3036
- "pyproject.toml"
3137
- "docs/**"
@@ -87,6 +93,11 @@ jobs:
8793
- name: Install Poetry
8894
run: pip install poetry
8995

96+
- name: Setup Node.js
97+
uses: actions/setup-node@v4
98+
with:
99+
node-version-file: package.json
100+
90101
- name: Install Task
91102
uses: arduino/setup-task@v2
92103
with:

Diff for: .github/workflows/check-npm-task.yml

+2
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"

Diff for: .github/workflows/check-prettier-formatting-task.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- ".github/workflows/check-prettier-formatting-task.ya?ml"
1010
- "Taskfile.ya?ml"
11+
- "**/.npmrc"
1112
- "**/.prettierignore"
1213
- "**/.prettierrc*"
1314
# CSS
@@ -104,6 +105,7 @@ on:
104105
paths:
105106
- ".github/workflows/check-prettier-formatting-task.ya?ml"
106107
- "Taskfile.ya?ml"
108+
- "**/.npmrc"
107109
- "**/.prettierignore"
108110
- "**/.prettierrc*"
109111
# CSS

Diff for: .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)