Who Presses Publish? Release Ownership for Shared Packages
When a package has several maintainers in different places, the question "who is allowed to release this?" usually has no written answer. It works until the one person who knows the publish steps goes on holiday, or until two people publish conflicting versions on the same afternoon. These are my notes on making release ownership explicit.
Publishing rights are a security decision
Every account that can publish a package is a way for a compromised credential to reach your users. That makes the list of publishers worth keeping short and reviewed. Registries have added tools for this: npm supports organisation teams and two-factor authentication for publishing, and both npm and PyPI support publishing from CI with short-lived credentials (npm trusted publishing and PyPI Trusted Publishing). When releases come from a CI workflow, the question shifts from "who has the token" to "who can trigger the workflow", which is easier to audit.
A lightweight ownership model
For a small group of maintainers, I like a model with three roles, written into the repository:
| Role | Responsibility | Typical count |
|---|---|---|
| Release manager | Decides when to cut a release, writes the changelog summary, triggers the publish workflow | One per release, rotating |
| Approver | Reviews the release pull request and confirms the version bump matches the changes | One or two |
| Registry admin | Holds owner rights on the registry, manages who else has access, handles emergencies | Two, so there is a backup |
The counts are an illustrative starting point, not a standard. The point is that each role has a name next to it, recorded somewhere like a MAINTAINERS file or the CODEOWNERS file for the release configuration.
Handing over across time zones
Asynchronous teams need releases that do not depend on a live conversation. A release pull request helps: one pull request that bumps the version and updates the changelog, so the approver can review it whenever they are online. Tools that generate these from Conventional Commits messages exist in most ecosystems, but even a manual version works.
I also keep a short RELEASING.md with the exact steps, including what to do if a publish half-fails. Here is an illustrative outline:
# Releasing
1. Merge the release PR (version + CHANGELOG).
2. Tag: git tag v2.4.0 && git push --tags
3. The "publish" workflow runs on the tag.
4. Check the registry page shows 2.4.0 and the provenance badge.
5. If the publish failed after upload: do NOT re-tag;
open an issue and ping a registry admin.
The emergency case
The real test of ownership is a bad release found at night. Decide in advance who may deprecate a version, who may publish a fix, and whether anyone can do so without review. Writing "any registry admin may deprecate a broken version immediately and must open an issue explaining why" takes a minute and removes hesitation when it matters. Note that unpublishing rules differ by registry, so check the npm Docs or the Python Packaging User Guide for the current policy rather than assuming you can delete a version.