---
myst:
  html_meta:
    "description": "Why repoplone exists: the problems of releasing and maintaining a Plone project repository, and how repoplone answers them."
    "property=og:description": "Why repoplone exists: the problems of releasing and maintaining a Plone project repository, and how repoplone answers them."
    "property=og:title": "Why repoplone"
    "keywords": "Plone, repoplone, release, monorepo, Volto, towncrier, uv, npm"
---

(why-repoplone)=

# Why repoplone

repoplone exists because a Plone codebase could contain more than a single package.
This page describes what a Plone project repository holds, and which codebases repoplone releases.
It then lists the work maintainers repeat for every release, and how repoplone takes that work over.

(why-repoplone-repository)=

## A Plone project is several projects in one repository

A Plone 6 project generated by [cookieplone](https://github.com/plone/cookieplone) holds a backend and a frontend side by side.
The backend is a Python package that adds content types, behaviors, and the site's configuration to Plone.
The frontend is a Node package, a Volto add-on, that holds the site's theme and blocks.
Next to them sit the files that turn both into a running site: container image definitions, compose files, deployment settings, and CI workflows.

Over time, the repository grows.
A team splits shared code into a second Python package.
A Volto add-on becomes reusable and gets published to npm.
A new frontend, such as one built on Aurora, starts next to the Volto one and shares packages with it.

Each of these packages has a version, a changelog, and a place where it gets published.
The repository as a whole also has a version: the one the team deploys and talks about.

(why-repoplone-codebases)=

## What repoplone releases

repoplone releases any repository it can describe as a set of Python and Node packages.
The same tool fits codebases of very different sizes.

A single Python package
: A tool or library with one package at the root of its repository.
  repoplone releases itself this way.

A Plone project with only a backend
: A backend package, and the files that deploy it.
  The site uses the frontend that ships with Plone, or none.

A Plone project with a backend and a frontend
: A backend package next to a Volto frontend, an Aurora frontend, or both.
  This is the layout cookieplone generates.

A complex add-on
: A Python package and its Volto add-on, developed and released together.
  It may hold several packages per side, each published to PyPI or npm.

Each of these gets one repository version, one project changelog, and one release command.

(why-repoplone-problems)=

## What a release asks of you

Releasing such a repository by hand means doing the same things in two ecosystems, in the right order, every time.

Two release tools
: The Python packages are built and published with uv to PyPI.
  The Node packages are released with release-it to npm.
  Each tool has its own configuration, its own authentication, and its own way to fail halfway.

Two version syntaxes
: Python follows {pep}`440`, where the first alpha of 1.0.0 is `1.0.0a1`.
  npm follows semantic versioning, where the same release is `1.0.0-alpha.1`.
  A project that wants one version across both sides must convert it for every package, without a typo.

Many changelogs
: Each package keeps its own changelog, written from news fragments with towncrier.
  The repository keeps one more, for the project, that gathers the changes of every package.
  All of them must be built from the same set of fragments at the same moment.
  The fragments must then be removed.

Base package pins in different places
: The backend builds on Plone, pinned through constraints in `pyproject.toml`.
  A Volto frontend pins Volto in `mrs.developer.json`.
  An Aurora frontend pins `@plone/aurora` as a pnpm config dependency in `pnpm-workspace.yaml`.
  Upgrading Plone or Volto means knowing which file to edit, then refreshing the lockfile of the right app.

Steps that depend on each other
: Bump the versions, write the changelogs, build and publish each package, commit, tag, push, and create a release on GitHub.
  A step done out of order, or forgotten, leaves a tag without a package or a package without a changelog.

CI that knows the same things again
: The workflows that test, build images, and check changelogs need to know which packages exist, where they live, and which versions they pin.
  Written by hand in YAML, that knowledge drifts from the repository it describes.

None of this is hard on its own.
It is the repetition, across two ecosystems and several packages, that makes releases slow and mistakes likely.

(why-repoplone-answer)=

## How repoplone answers

repoplone moves this knowledge into one file and the work into one command.

One description of the repository
: A `repository.toml` file at the root of the repository declares the repository, its packages, and the apps they are developed in.
  Each package says its type, its path, its changelog, and whether it gets published.
  Every command reads this file.
  The knowledge lives in one place.
  See {doc}`repository-model`.

One version for everything
: The repository has one version.
  repoplone computes the next one from a keyword such as `minor` or `a`, and writes it to every package in the syntax its ecosystem expects.
  See {doc}`versioning`.

One release pipeline
: `repoplone release` runs the release as an ordered list of steps: changelog, version, packages, git, and GitHub release.
  A dry run walks through every step without committing, tagging, or publishing anything.
  A failed release restarts from the step that failed.
  Projects can reorder the steps, drop the ones they do not need, and add their own.
  See {doc}`release-pipeline`.

One view of the dependencies
: `repoplone deps` reports the Plone, Volto, or Aurora version each app uses and compares it with the latest release.
  It upgrades that version in the file where the app pins it.
  See {doc}`/how-to/upgrade-plone-or-volto`.

One source for CI
: `repoplone settings github-outputs` gives a workflow the components, packages, versions, and path filters it needs.
  `repoplone changelog check` tells a pull request which packages still need a news fragment.
  The workflow reads them instead of repeating them.
  See {doc}`/how-to/use-in-github-actions`.

(why-repoplone-scope)=

## What repoplone leaves to other tools

repoplone drives the tools a Plone project already uses.
uv builds and publishes Python packages.
release-it publishes Node packages.
towncrier writes the changelogs.
The project's own `Makefile` installs each app.

repoplone does not build container images, deploy sites, or run tests.
Those stay in the project's CI, which can read what repoplone reports.

```{seealso}
- {doc}`repository-model`, for how repoplone sees a repository.
- {doc}`/tutorials/first-release`, to try repoplone on a project of your own.
```
