Invariant Violation: Failed to publish: the publish script exited. #47
-
I've used Release before without issues, but I'm trying to publish a new package and it's just failing without much help. Repo can be found here.
The package publishes just fine with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hey, @creativiii. Could you try the latest Release version? I've implemented std streaming from the script process to the Release process so you should get stderr/stdout now, giving you more details on what's going wrong. This is 99% an error thrown by the release script (missing registry auth, improper Give the latest version a try and let me know. |
Beta Was this translation helpful? Give feedback.
-
It just dawned on me that I have no reason to use So I ended up doing that and it worked really easily. I think yarn 2 might've changes some stuff in regards to the publish command so it might be worthy of investigation. Two things I noticed:
Either way, Release now runs fine, so all good! Thank you for help and sorry for wasting your time! |
Beta Was this translation helpful? Give feedback.
It just dawned on me that I have no reason to use
yarn
to publish the package and that I can just usenpm publish
to send the package to NPM.So I ended up doing that and it worked really easily. I think yarn 2 might've changes some stuff in regards to the publish command so it might be worthy of investigation. Two things I noticed:
--new-version
yarn npm publish
started failing with a404
error, even though I've used the exact command before to publish it locallyEither way, Release now runs fine, so all good! Thank you for help and sorry for wasting your time!