From 7363145f7e07bbc7536a3a5af4edbaadbd33038e Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 4 Apr 2026 19:18:55 +0200 Subject: [PATCH] Fix verify-action-build to try 'npm run start' for actions that use it Some actions like editorconfig-checker/action-editorconfig-checker use "start" as their build script name. The build detection previously only tried "build" and "package" before falling back to a bare `npx ncc build` which fails for TypeScript entry points. Generated-by: Claude Opus 4.6 (1M context) --- utils/verify-action-build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/verify-action-build.py b/utils/verify-action-build.py index a5db0333..845ce825 100644 --- a/utils/verify-action-build.py +++ b/utils/verify-action-build.py @@ -853,7 +853,7 @@ def diff_approved_vs_new( fi # Build: first try a root-level build script (some repos like gradle/actions use one), -# then try npm/yarn/pnpm build in the build directory, then package, then ncc fallback. +# then try npm/yarn/pnpm build in the build directory, then package, then start, then ncc fallback. # If the build directory is a subdirectory, copy its output dir to root afterwards. RUN OUT_DIR=$(cat /out-dir.txt); \ BUILD_DIR=$(cat /build-dir.txt); \ @@ -869,6 +869,8 @@ def diff_approved_vs_new( echo "build-step: $RUN_CMD run build (in $BUILD_DIR)" >> /build-info.log; \ elif $RUN_CMD run package 2>/dev/null; then \ echo "build-step: $RUN_CMD run package (in $BUILD_DIR)" >> /build-info.log; \ + elif $RUN_CMD run start 2>/dev/null; then \ + echo "build-step: $RUN_CMD run start (in $BUILD_DIR)" >> /build-info.log; \ elif npx ncc build --source-map 2>/dev/null; then \ echo "build-step: npx ncc build --source-map (in $BUILD_DIR)" >> /build-info.log; \ fi && \