Skip to content

Commit 8d17e75

Browse files
authored
Actions fails if npm install failed
1 parent 5a8b0e2 commit 8d17e75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

script.sh

+2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ echo '::endgroup::'
1414
npx --no-install -c 'eslint --version'
1515
if [ $? -ne 0 ]; then
1616
echo '::group:: Running `npm install` to install eslint ...'
17+
set -e
1718
npm install
19+
set +e
1820
echo '::endgroup::'
1921
fi
2022

0 commit comments

Comments
 (0)