Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 2.97 KB

RELEASING.md

File metadata and controls

73 lines (49 loc) · 2.97 KB

Releasing

To ease the release process, we use the utility release-it which helps with the process, and towncrier for creating and maintaining change logs.

Release requirements

To start a release, you must fulfill the following requirements:

To request these permissions, on GitHub tag @plone/release-team, or in Discord post to the release-team channel.

Permission to push to master branch

The release process involves pushing directly to the master branch. Volto's master branch is protected, so the releaser needs to have permission for pushing to it. At the moment of this writing, members of the GitHub group @plone/volto-team have permission to push to master.

Permission to release Volto to npm registry

We push Volto's releases to the npm registry. The releaser has to have permissions for pushing a release in the @plone organization on npm. Only the current Owners of this organization can grant permissions to the releaser.

Have a GitHub personal token with permissions to write the Volto's Releases

The release-it library takes care of creating and pushing a GitHub Release for each release. It requires you to get a GitHub personal token with permission to write to the Volto's Releases. This can be acquired in your GitHub profile page. When making a release, export the environment variable GITHUB_TOKEN in your shell session.

export GITHUB_TOKEN="my_looooong_github_token"

See release-it documentation of GitHub releases and GitHub documentation About releases.

Install pipx in your system

The release process calls towncrier. It is a Python library that uses the Python utility pipx. This utility allows you to call and execute Python modules without installing them as a prerequisite in your system. It works similar to the NodeJS npx utility. On macOS, you can install pipx into your system:

brew install pipx

Or follow detailed instructions in the pipx documentation for Installation.

Running the release process

These are the commands to make a Volto release:

yarn release

A dry-release command for testing the output is also available:

yarn dry-release

An alpha release can be cut using:

yarn release-alpha