Commit ae353ec38d5 for nodejs
commit ae353ec38d57385e8b06cc14521ef75718cdd86c
Author: Yuya Inoue <65857152+inoway46@users.noreply.github.com>
Date: Sun Nov 8 03:36:42 2026 +0900
tools: use ubuntu-latest for public lint-js-and-md jobs
Use ubuntu-latest in public repositories to reduce runtime and
provide more headroom when the ESLint cache cannot be restored.
Keep ubuntu-slim in private repositories to avoid increasing
runner costs.
Assisted-by: Codex
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66409
Refs: https://github.com/nodejs/node/issues/64972
Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index 2d959d6bda7..43a64994207 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -98,7 +98,7 @@ jobs:
fi
lint-js-and-md:
if: github.event.pull_request.draft == false
- runs-on: ubuntu-slim
+ runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: