Currently this action takes the output from running npm version... to directly parse the new version number. This PR updates the way this output is parsed to get the version number from the last line of output so that any preversion/version/postversion hooks can be run without their output affecting the parsed version number.
Example output with postversion hook:
$ npm version patch
> postversion
> echo 'just running another script of sorts here...'
just running another script of sorts here...
v10.1.2
Type of Change
What does it do?
Currently this action takes the output from running
npm version...
to directly parse the new version number. This PR updates the way this output is parsed to get the version number from the last line of output so that anypreversion
/version
/postversion
hooks can be run without their output affecting the parsed version number.Example output with
postversion
hook: