changesets
Allow you write custom logic on precommit, prepush and other scenarios to your git.
npm i -D @changesets/cli
npm run changeset init
From here you are set up to use changesets. Add your first changeset by running
npm run changeset
Add a release script
// package.json
{
"scripts": {
"release": "yarn build && changeset publish"
}
}