Skip to content

Commit 1ea70cf

Browse files
committed
chore: update Node.js version in CI workflow
Change Node.js version from a specific patch version 22.22.1 to the more flexible 22.x in GitHub Actions workflow. This ensures compatibility with the latest npm versions, which require Node.js ^22.22.2 or higher to function properly, preventing installation errors.
1 parent 64a7b43 commit 1ea70cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/node.js.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
node-version: [22.22.1]
24+
# Track the latest Node 22 LTS: `npm install -g npm@latest` below pulls npm 12+, whose
25+
# engine requires Node ^22.22.2, so an exact older pin (e.g. 22.22.1) breaks the install.
26+
node-version: [22.x]
2527
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2628

2729
steps:

0 commit comments

Comments
 (0)