The recommended way to make a release is to use jupyter_releaser
pip install pipx
git pull origin $(git branch --show-current)
git clean -dffx
echo "Enter new version"
read script_version
pipx run hatch version ${script_version}
git tag -a ${script_version} -m ${script_version}
rm -rf dist
pipx run build .
pipx run twine check dist/*
pipx run twine upload dist/*