From ae353ec38d57385e8b06cc14521ef75718cdd86c Mon Sep 17 00:00:00 2001 From: Yuya Inoue <65857152+inoway46@users.noreply.github.com> Date: Sun, 8 Nov 2026 03:36:42 +0900 Subject: [PATCH] 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 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 --- .github/workflows/linters.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: