geddski / grunt-release

Release a new version of your Node-based project
MIT License
388 stars 121 forks source link

Unhelpful output when `npm publish` fails #171

Open papandreou opened 6 years ago

papandreou commented 6 years ago

I have a package with a prepublishOnly hook that does a bunch of checks. When I try to release a new version using grunt-release, I don't see any of the output of the hook, just the fact that it failed:

$ grunt release:minor
Running "release:minor" (release) task
>> bumped version of package.json to 0.18.0
>> staged package.json
>> Committed all files
>> created new git tag: 0.18.0
>> pushed to remote
>> pushed new tag 0.18.0 to remote
Warning: Failed when executing: `npm publish`
 Use --force to continue.

Aborted due to warnings.

I can get the output by running npm publish directly, or just the prepublishOnly script itself, but it would be nicer if grunt-release could just proxy through the stdout/stderr output.