Skip to content

Commit a281852

Browse files
committed
Print npm debug log for each install failure
1 parent 22aa09b commit a281852

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/scripts/test_install

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ test_npm_install() {
366366
npm_install_from_github
367367
if [[ "$?" -ne 0 ]]; then
368368
echo 'Installation (via GitHub) failed.' >&2
369+
cat "${working_dir}/npm-debug.log" >&2
369370
return 1
370371
fi
371372
fi
@@ -381,6 +382,7 @@ test_npm_install() {
381382
npm_install_global
382383
if [[ "$?" -ne 0 ]]; then
383384
echo 'Installation (global) failed.' >&2
385+
cat "${working_dir}/npm-debug.log" >&2
384386
return 1
385387
fi
386388
fi
@@ -396,6 +398,7 @@ test_npm_install() {
396398
npm_install_global_github
397399
if [[ "$?" -ne 0 ]]; then
398400
echo 'Installation (global via GitHub) failed.' >&2
401+
cat "${working_dir}/npm-debug.log" >&2
399402
return 1
400403
fi
401404
fi

0 commit comments

Comments
 (0)