-
install npm, twine, build
-
login to npm:
npm login
-
setup
~/.pypirc
to login to pypi reposotory -
remove all untracked files:
git clean -fdx
-
bump versions in
./package.json
,./ipylabel/_version.py
and./ipylabel/_frontend.py
-
build widget:
pip install -e ".[test, examples]"
andnpm run build
-
commit changes (
f"chore: bump versions to {current_version}"
) with tag equal to current version (f"v{current_version}"
) -
create tag
git tag -s -a v{current_version} -m "chore: bump versions to {current_version}"
-
push everything
git push origin --follow-tags
-
release to npm:
npm publish
-
release to Pypi
python -m build
twine check dist/ipylabel*
twine upload dist/ipylabel*