np icon indicating copy to clipboard operation
np copied to clipboard

Add flag to avoid pushing the tag commit back to the repo

Open fregante opened this issue 2 years ago • 1 comments

Description

Sometimes you don't want to push the tag back to the repo, e.g.

  • https://github.com/sindresorhus/np/issues/591
  • If you want to make further changes or test after it's published to npm

Possible implementation

Adding a --no-push flag that avoids calling git push at all

Alternatives

Manually pressing ctrl-c at the right time to block the push manually 🥲

fregante avatar Dec 15 '21 08:12 fregante

As an option you can set git-tag-version = false in your .npmrc file

This will check tags before release but will not set it

Romanchuk avatar Jul 20 '22 11:07 Romanchuk

Closing because I stopped caring about this; GitHub stopped showing raw tags on the Releases page.

I let it push the commit and tag. The commit stays visible in the PR and the tag lives forever on git just like it does on npm.

fregante avatar Feb 03 '23 08:02 fregante