Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion utils/verify-action-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand All @@ -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 && \
Expand Down
Loading