Skip to content

Latest commit

 

History

History
74 lines (54 loc) · 2.72 KB

RELEASE.md

File metadata and controls

74 lines (54 loc) · 2.72 KB

Making a new release of jupyterlab_accessible_themes

The extension can be published to PyPI and npm manually or using the Jupyter Releaser.

🚧 Manual release

📦 Python package

This extension can be distributed as a Python package. The pyproject.toml file contains all the instructions needed to wrap the extension in a Python package.

  1. Before generating a package, we first need to install build and gitchangelog.

    pip install build twine gitchangelog
  2. Follow the instructions to make a new release,

    • git fetch && git pull
    • git clean -xdfi
    • Update CHANGELOG.md with gitchangelog
    • Check version in package.json - modify it if necessary
    • git add && git commit -m "Release vX.X.X"
    • jlpm install
    • jlpm build
    • python setup.py bdist_wheel --universal
    • python setup.py sdist
    • twine check dist/*
    • twine upload dist/*
    • git tag -a vX.X.X -m 'Release x.x.x'
    • Increment version in package.json
    • git add && git commit
    • git push
    • git push --tags

📦 NPM package

  1. To publish the frontend part of the extension as a NPM package, do:

    npm login
    npm publish --access public

👷🏽‍♀️ Automated releases with the Jupyter Releaser

The extension repository should already be compatible with the Jupyter Releaser.

Check out the jupyter_releaser workflow documentation for more information.

Here is a summary of the steps to cut a new release:

  1. Fork the jupyter-releaser repo
  2. Add the following secrets as repository secrets in GitHub ADMIN_GITHUB_TOKEN, PYPI_TOKEN and NPM_TOKEN
  3. Go to the Actions panel
  4. Run the "Draft Changelog" workflow
  5. Merge the Changelog PR
  6. Run the "Draft Release" workflow
  7. Run the "Publish Release" workflow

📰 Publishing to conda-forge

If the package is not on conda-forge yet, check the conda-forgedocumentation on how to contribute new packages.

Otherwise, a bot should pick up the new version publish to PyPI, and open a new PR on the feedstock repository automatically.