The recommended way to make a release is to use jupyter_releaser.
This repository contains the two workflows located under https://github.com/voila-dashboards/voila/actions:
- Step 1: Prep Release
- Step 2: Publish Release
voila follows a similar bump strategy as in JupyterLab:
https://github.com/jupyterlab/jupyterlab/blob/master/RELEASE.md#bump-version
jupyter_releaser handles the bump automatically so it is not necessary to do it manually, as long as the spec is correctly specified in the workflow.
To manually bump the version, run:
# install the dependencies
python -m pip install -e ".[test,dev]"
# bump the version
python scripts/bump-version.py <spec>Where <spec> can be one of the following: patch, minor, major, release or next (auto for patch or minor).
When there is a breaking change in a JS package, the version of the package should be bumped by one major version.
For example if the version of the preview extension was 2.1.0-alpha.1 and a breaking is introduced, bump to 3.0.0-alpha.0.
- Open a new PR on https://github.com/conda-forge/voila-feedstock to update the
versionand thesha256hash (see example) - Wait for the tests
- Merge the PR
The new version will be available on conda-forge soon after.
The prebuilt extension is already packaged in the main Python package.
However we also publish it to npm to:
- let other third-party extensions depend on
@voila-dashboards/jupyterlab-preview - let users install from source if they would like to