sindresorhus / np

A better `npm publish`
MIT License
7.56k stars 299 forks source link

Rollbacks on git operations does not happen on failed publish. #753

Open rocktimsaikia opened 3 months ago

rocktimsaikia commented 3 months ago

Description

Right now, if for any reasons the primary step "Publishing package" fails, the git operations done by the "Bumping version" step are not cleaned up/rolled back. Because of that on every publish failure, we have to manually reset the commit and delete the git tag created.

image

image

image

Environment

np - 10.0.7 Node.js - v20.15.1 npm - 10.7.0 Git - 2.34.1 OS - Pop!_OS 22.04 LTS x86_64