Does @jscutlery/semver aka @nrwl/nx handle rollback on npm publish failures?

Viewed 11

Ive been messing with NX and its a great tool, but im trying to further understand how it might handle edge cases. Say I have a library with 20 packages that will each be published to a private NPM repository. If 1 of those libraries fails to publish I would like the entire process to fail and rollback. Ie:

  1. All packages for that version are unpublished
  2. All package.json versions are reverted
  3. Changelogs and other chore items are reverted

Does NX or @jscutlery/semver handle this automatically?

Bonus question: I am reading through the jscuterly docs but if anyone also knows if we can customize the git tags, that would be super handy info as well

0 Answers
Related