Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhelpful output when npm publish fails #171

Open
papandreou opened this issue Sep 11, 2018 · 0 comments
Open

Unhelpful output when npm publish fails #171

papandreou opened this issue Sep 11, 2018 · 0 comments

Comments

@papandreou
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant