Before doing a release, check to see if there are any outstanding changes or untracked files:
git status
git clean -fdxn
Commit changes, and make sure that any untracked files can be deleted. Then clean the repository:
git clean -fdx # actually delete untracked files
To release a new version of reactpy-client-jupyter on NPM, first register for an NPM account here, then log in with yarn login
. Then:
-
Update
js/package.json
with the new npm package version -
Build and publish the npm package inside the
js/
directory:cd js/ yarn install yarn publish cd ..
To release a new version of reactpy_jupyter on PyPI, first make sure that the build
package is installed: pip install build
.
- Update
reactpy_jupyter/_version.py
:- Update
__version__
- Update
NPM_PACKAGE_RANGE
if necessary
- Update
- Commit changes to
_version.py
and tag the releasegit add reactpy_jupyter/_version.py git tag -a X.X.X -m 'comment'
- Generate Python packages and upload to PyPI:
python -m build twine check dist/* twine upload dist/*
- Update
_version.py
(add 'dev' and increment minor)git commit -a -m 'Back to dev' git push git push --tags