Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4f64f22

Browse files
committed
Use relevant metadata file when determining Node.js version
This workflow job supports projects with multiple npm projects in subfolders of the repository. The version of Node.js to use is determined from the content of the npm metadata file. Previously the workflow always used the file located in the root of the repository. The versioning data in that file won't necessarily be correct for npm projects in subfolders, so the metadata for the individual npm project should be used instead.
1 parent e953c6b commit 4f64f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
- name: Setup Node.js
107107
uses: actions/setup-node@v5
108108
with:
109-
node-version-file: package.json
109+
node-version-file: "${{ matrix.project.path }}/package.json"
110110

111111
- name: Install Task
112112
uses: arduino/setup-task@v2

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /