Self-use npm postversion script
npm i -D @tsuk1ko/postversion
yarn add -D @tsuk1ko/postversion
Add a postversion
script to your package.json
{
"scripts": {
"postversion": "tpv"
}
}
When you run npm version
and confirm, commits and the new tag will be pushed to the remote.
This script won't run npm publish
. It is designed for publishing package with GitHub Actions.