From edc368efd429cda3536eefd3d26ba4f2bc0d3a09 Mon Sep 17 00:00:00 2001 From: kkdev92 <112151103+kkdev92@users.noreply.github.com> Date: Thu, 22 Oct 2026 11:05:09 +0900 Subject: [PATCH] ci: use the latest Node.js patch release on every run The workflows named exact Node.js versions (22.23.4, 24.22.1 and 26.12.1) so that a runner with an older release of the line in its tool cache would not be used. An exact version stays where it is put: each Node.js release needs another change like #111 to move it, and until then CI and the release jobs keep running the previous one. Each actions/setup-node step now asks for the major of its job (22.x, 24.x or 26.x in the test matrix, 26.x everywhere else) with check-latest: true. setup-node then resolves the newest release of that line from its versions manifest, downloads it when the cached one is older, and logs "Resolved as ''". The major line is unchanged and still moves only by an edit here. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 17 ++++++++++------- .github/workflows/pages.yml | 3 ++- .github/workflows/release.yml | 6 ++++-- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23ba4f4..e99e160 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,9 +34,8 @@ jobs: - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: >- - ${{ matrix.node-version == 22 && '22.23.4' || - matrix.node-version == 24 && '24.22.1' || '26.12.1' }} + node-version: ${{ matrix.node-version }}.x + check-latest: true cache: 'npm' - name: Install dependencies @@ -83,7 +82,8 @@ jobs: - name: Setup Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26.12.1 + node-version: 26.x + check-latest: true cache: 'npm' - name: Install dependencies @@ -119,7 +119,8 @@ jobs: - name: Setup Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26.12.1 + node-version: 26.x + check-latest: true cache: 'npm' - name: Install dependencies @@ -152,7 +153,8 @@ jobs: - name: Setup Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26.12.1 + node-version: 26.x + check-latest: true cache: 'npm' - name: Install dependencies @@ -190,7 +192,8 @@ jobs: - name: Setup Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26.12.1 + node-version: 26.x + check-latest: true cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 7014b8b..0378723 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -40,7 +40,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26.12.1 + node-version: 26.x + check-latest: true cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40661e4..a76665a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26.12.1 + node-version: 26.x + check-latest: true cache: 'npm' - name: Install dependencies @@ -104,7 +105,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26.12.1 + node-version: 26.x + check-latest: true registry-url: 'https://registry.npmjs.org' cache: 'npm'