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>
This commit is contained in:
Yuya Inoue authored and Antoine du Hamel committed 2026-11-11 17:20:32 +01:00
1 parent 1774391f3e
commit ace3168084
1 file changed
+1 -1
+1 -1
View File
@@ -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: