From 4f64f22e7f72ff90031d28b0ed1247a177a8d483 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 6 Sep 2025 10:00:48 -0700 Subject: [PATCH] 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. --- .github/workflows/check-npm-task.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-npm-task.yml b/.github/workflows/check-npm-task.yml index d5bf6f8..704a262 100644 --- a/.github/workflows/check-npm-task.yml +++ b/.github/workflows/check-npm-task.yml @@ -106,7 +106,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v5 with: - node-version-file: package.json + node-version-file: "${{ matrix.project.path }}/package.json" - name: Install Task uses: arduino/setup-task@v2