Skip to content

Commit

Permalink
Actions fails if npm install failed
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit authored Jun 17, 2024
1 parent 5a8b0e2 commit 8d17e75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ echo '::endgroup::'
npx --no-install -c 'eslint --version'
if [ $? -ne 0 ]; then
echo '::group:: Running `npm install` to install eslint ...'
set -e
npm install
set +e
echo '::endgroup::'
fi

Expand Down

0 comments on commit 8d17e75

Please sign in to comment.