You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran np and my prepublishOnly script failed during the npm publish step. np reported that The project was rolled back to its previous state. However, I still have the Git commit and tag from the failed release.
Steps to reproduce
create a prepublishOnly script that will fail
run np
Expected behavior
The Git commit and tag should be rolled back so that I can try again. I saw this was originally implemented in #334 , so this is possibly an uncaught edge case or regression.
Description
I ran
np
and myprepublishOnly
script failed during the npm publish step.np
reported thatThe project was rolled back to its previous state.
However, I still have the Git commit and tag from the failed release.Steps to reproduce
prepublishOnly
script that will failnp
Expected behavior
The Git commit and tag should be rolled back so that I can try again. I saw this was originally implemented in #334 , so this is possibly an uncaught edge case or regression.
Environment
np - 9.2.0
Node.js - 20.10.0
npm - 10.2.5
Git - 2.43.0
OS - MacOS Sonoma 14.2.1
The text was updated successfully, but these errors were encountered: