Sourced from actions/setup-node's releases.
Fix logic of error handling for npm warning and uncaught exception
In scope of this release we fix logic of error handling related to caching (actions/setup-node#358) and (actions/setup-node#359).
In the previous behaviour we relied on
stderr
output to throw error. The warning messages from package managers can be written to the stderr's output. For now the action will throw an error only if exit code differs from zero. Besides, we add logic to сatch and log unhandled exceptions.
1f8c6b9
Pass to warning uncaught exceptions (#359)9a74eb4
Throw error only if exit code is note zero. (#358)