1616 runs-on : ubuntu-latest
1717 outputs :
1818 docs_only : ${{ steps.check.outputs.docs_only }}
19+ docs_changed : ${{ steps.check.outputs.docs_changed }}
1920 steps :
2021 - name : Checkout
2122 uses : actions/checkout@v4
2526
2627 - name : Detect docs-only changes
2728 id : check
28- uses : ./.github/actions/detect-docs-only
29+ uses : ./.github/actions/detect-docs-changes
2930
3031 # Detect which heavy areas are touched so PRs can skip unrelated expensive jobs.
3132 # Push to main keeps broad coverage.
@@ -120,7 +121,7 @@ jobs:
120121
121122 # Build dist once for Node-relevant changes and share it with downstream jobs.
122123 build-artifacts :
123- needs : [docs-scope, changed-scope, code-size , check-lint ]
124+ needs : [docs-scope, changed-scope, code-analysis , check]
124125 if : needs.docs-scope.outputs.docs_only != 'true' && (github.event_name == 'push' || needs.changed-scope.outputs.run_node == 'true')
125126 runs-on : blacksmith-4vcpu-ubuntu-2404
126127 steps :
@@ -144,9 +145,10 @@ jobs:
144145 path : dist/
145146 retention-days : 1
146147
147- install-check :
148- needs : [docs-scope, changed-scope, code-size, check-lint]
149- if : needs.docs-scope.outputs.docs_only != 'true' && (github.event_name == 'push' || needs.changed-scope.outputs.run_node == 'true')
148+ # Validate npm pack contents after build.
149+ release-check :
150+ needs : [docs-scope, build-artifacts]
151+ if : needs.docs-scope.outputs.docs_only != 'true'
150152 runs-on : blacksmith-4vcpu-ubuntu-2404
151153 steps :
152154 - name : Checkout
@@ -159,8 +161,17 @@ jobs:
159161 with :
160162 install-bun : " false"
161163
164+ - name : Download dist artifact
165+ uses : actions/download-artifact@v4
166+ with :
167+ name : dist-build
168+ path : dist/
169+
170+ - name : Check release contents
171+ run : pnpm release:check
172+
162173 checks :
163- needs : [docs-scope, changed-scope, code-size , check-lint ]
174+ needs : [docs-scope, changed-scope, code-analysis , check]
164175 if : needs.docs-scope.outputs.docs_only != 'true' && (github.event_name == 'push' || needs.changed-scope.outputs.run_node == 'true')
165176 runs-on : blacksmith-4vcpu-ubuntu-2404
166177 strategy :
@@ -188,9 +199,9 @@ jobs:
188199 - name : Run ${{ matrix.task }} (${{ matrix.runtime }})
189200 run : ${{ matrix.command }}
190201
191- # Format check — cheapest gate (~43s). Always runs, even on docs-only changes .
192- check-format :
193- name : " check: format "
202+ # Types, lint, and format check .
203+ check :
204+ name : " check"
194205 runs-on : blacksmith-4vcpu-ubuntu-2404
195206 steps :
196207 - name : Checkout
@@ -201,13 +212,13 @@ jobs:
201212 - name : Setup Node environment
202213 uses : ./.github/actions/setup-node-env
203214
204- - name : Check formatting
205- run : pnpm format: check
215+ - name : Check types and lint and oxfmt
216+ run : pnpm check
206217
207- # Lint check — runs after format passes for cleaner output .
208- check-lint :
209- name : " check: lint "
210- needs : [check-format]
218+ # Validate docs (format, lint, broken links) only when docs files changed .
219+ check-docs :
220+ needs : [docs-scope]
221+ if : needs.docs-scope.outputs.docs_changed == 'true'
211222 runs-on : blacksmith-4vcpu-ubuntu-2404
212223 steps :
213224 - name : Checkout
@@ -218,14 +229,13 @@ jobs:
218229 - name : Setup Node environment
219230 uses : ./.github/actions/setup-node-env
220231
221- - name : Check types and lint
222- run : pnpm check
232+ - name : Check docs
233+ run : pnpm check:docs
223234
224235 # Check for files that grew past LOC threshold in this PR (delta-only).
225236 # On push events, all steps are skipped and the job passes (no-op).
226237 # Heavy downstream jobs depend on this to fail fast on violations.
227- code-size :
228- needs : [check-format]
238+ code-analysis :
229239 runs-on : blacksmith-4vcpu-ubuntu-2404
230240 steps :
231241 - name : Checkout
@@ -279,7 +289,7 @@ jobs:
279289 fi
280290
281291 checks-windows :
282- needs : [docs-scope, changed-scope, build-artifacts, code-size , check-lint ]
292+ needs : [docs-scope, changed-scope, build-artifacts, code-analysis , check]
283293 if : needs.docs-scope.outputs.docs_only != 'true' && (github.event_name == 'push' || needs.changed-scope.outputs.run_node == 'true')
284294 runs-on : blacksmith-4vcpu-windows-2025
285295 env :
@@ -328,19 +338,6 @@ jobs:
328338 Write-Warning "Failed to apply Defender exclusions, continuing. $($_.Exception.Message)"
329339 }
330340
331- - name : Checkout submodules (retry)
332- run : |
333- set -euo pipefail
334- git submodule sync --recursive
335- for attempt in 1 2 3 4 5; do
336- if git -c protocol.version=2 submodule update --init --force --depth=1 --recursive; then
337- exit 0
338- fi
339- echo "Submodule update failed (attempt $attempt/5). Retrying…"
340- sleep $((attempt * 10))
341- done
342- exit 1
343-
344341 - name : Download dist artifact (lint lane)
345342 if : matrix.task == 'lint'
346343 uses : actions/download-artifact@v4
@@ -400,7 +397,7 @@ jobs:
400397 # running 4 separate jobs per PR (as before) starved the queue. One job
401398 # per PR allows 5 PRs to run macOS checks simultaneously.
402399 macos :
403- needs : [docs-scope, changed-scope, code-size , check-lint ]
400+ needs : [docs-scope, changed-scope, code-analysis , check]
404401 if : github.event_name == 'pull_request' && needs.docs-scope.outputs.docs_only != 'true' && needs.changed-scope.outputs.run_macos == 'true'
405402 runs-on : macos-latest
406403 steps :
@@ -481,19 +478,6 @@ jobs:
481478 with :
482479 submodules : false
483480
484- - name : Checkout submodules (retry)
485- run : |
486- set -euo pipefail
487- git submodule sync --recursive
488- for attempt in 1 2 3 4 5; do
489- if git -c protocol.version=2 submodule update --init --force --depth=1 --recursive; then
490- exit 0
491- fi
492- echo "Submodule update failed (attempt $attempt/5). Retrying…"
493- sleep $((attempt * 10))
494- done
495- exit 1
496-
497481 - name : Select Xcode 26.1
498482 run : |
499483 sudo xcode-select -s /Applications/Xcode_26.1.app
@@ -646,7 +630,7 @@ jobs:
646630 PY
647631
648632 android :
649- needs : [docs-scope, changed-scope, code-size , check-lint ]
633+ needs : [docs-scope, changed-scope, code-analysis , check]
650634 if : needs.docs-scope.outputs.docs_only != 'true' && (github.event_name == 'push' || needs.changed-scope.outputs.run_android == 'true')
651635 runs-on : blacksmith-4vcpu-ubuntu-2404
652636 strategy :
@@ -663,19 +647,6 @@ jobs:
663647 with :
664648 submodules : false
665649
666- - name : Checkout submodules (retry)
667- run : |
668- set -euo pipefail
669- git submodule sync --recursive
670- for attempt in 1 2 3 4 5; do
671- if git -c protocol.version=2 submodule update --init --force --depth=1 --recursive; then
672- exit 0
673- fi
674- echo "Submodule update failed (attempt $attempt/5). Retrying…"
675- sleep $((attempt * 10))
676- done
677- exit 1
678-
679650 - name : Setup Java
680651 uses : actions/setup-java@v4
681652 with :
0 commit comments