np
np copied to clipboard
Add flag to avoid pushing the tag commit back to the repo
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 🥲
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
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.