The Package Release Toolkit: What to Open at Each Stage

This site has dozens of pages that touch on releasing a package. On release week you do not want to search for them. This toolkit lines them up in the order you need them, with a sentence on what each one is for and roughly how long it takes. Skip what does not apply to your registry.

Stage 1: a week or more before

  1. Plan the version. Fill in the release plan worksheet (about 15 minutes). It forces decisions on scope, bump level and rollback before you are under time pressure.
  2. If it is a major: open the breaking change inventory and keep it updated as changes merge.
  3. Check the bump. If you are unsure whether a change is minor or major, the tips on choosing the next version number settle most cases; the semver edge cases handle the rest.
  4. Leaving 0.x? Run the 1.0 readiness checklist first.

Stage 2: release week

  1. Write the changelog section. Follow how to write a changelog entry, or start from the CHANGELOG.md template.
  2. Add deprecation notices for anything you plan to remove later, using the deprecation notice template.
  3. Check metadata. For npm, compare your manifest with the library package.json template; for Python, the pyproject.toml metadata post.

Stage 3: release day

StepnpmPyPI
Run the registry checklistnpm pre-publish checklistPyPI release checklist
Test the built artefactTest the package tarball before publish
Publish with short-lived credentialsnpm provenanceTrusted Publishing setup
Pre-release instead?Dist-tags for pre-releasesPEP 440 pre-release suffixes

For Rust crates, the crates.io publishing checklist covers the equivalent steps.

Stage 4: the days after

  1. Watch for install and import errors. Keep the diagnostics handy: missing files, module format errors and peer dependency conflicts.
  2. If the release is broken, work through recovering from a bad release and the notes on yanking a release.
  3. Review the process. Fill in the last section of the release plan worksheet, then take the release readiness self-assessment once a quarter to see whether your habits are improving.

Adapting the toolkit for an internal library

Teams that publish to a private registry can follow the same order with two changes. First, the audience for the changelog is colleagues on other teams, so link each entry to the internal ticket and name the services you know depend on the package; that turns a release note into a to-do list for the people affected. Second, credentials usually come from the company's CI system rather than a public registry's trusted publishing feature, so check how your registry issues short-lived tokens and use that instead of a shared publish password. Everything else, from the worksheet to the post-release review, carries over unchanged.

Once a year

Some checks do not belong in every release. Put these on a calendar: the supply-chain security self-assessment, a review of who holds publish rights (see maintainer account security), the annual dependency audit and a look at the runtime end-of-life calendar to decide which versions to drop in the next major.

The full set of quizzes and self-checks lives in the self-checks index, and the specifications behind all of this are listed on the resources page.