The First Hour After Publishing: Post-Release Checks That Catch Real Problems

Pre-publish checklists get most of the attention, and rightly so: it is much cheaper to stop a bad release than to clean one up. But some problems only become visible once the package is actually on the registry. The files a registry serves may differ from what you tested locally, the metadata page may render in a way you did not expect, and a clean install on a fresh machine is a very different experience from running tests in a working copy. This guide describes a short routine for the first hour after a release, when problems are still easy and cheap to fix.

Why "it passed CI" is not enough

CI usually tests the source tree. Users install the artefact. Between the two sit your build configuration, your file include and exclude rules, the registry's processing and any post-install steps. A test suite that passes against the source can be entirely green while the published package is missing a compiled file, ships a stale type definition, or depends on something that only exists in your development dependencies. The post-publish check closes that gap by testing what users actually receive.

Step 1: install from the registry, somewhere clean

Create a fresh, empty project in a temporary directory or container that has never seen your source code. Install the exact version you just published, by number rather than by tag, so you are certain which artefact you are testing.

# npm
mkdir /tmp/try-pkg && cd /tmp/try-pkg
npm init -y
npm install your-package@1.4.0

# Python
python -m venv /tmp/try-pkg && . /tmp/try-pkg/bin/activate
pip install --no-cache-dir your-package==1.4.0

Then write the smallest possible program that uses the main entry points: import the package, call one function, print the version. If you publish a command-line tool, run it with --help. If you support several module formats, test each one. This takes a few minutes and catches a large share of release problems, such as missing files, wrong entry points and undeclared runtime dependencies.

Step 2: look at what was actually uploaded

Inspect the artefact itself. For npm, npm pack your-package@1.4.0 downloads the published tarball, which you can list with tar -tzf. For Python, download the wheel and source distribution and list them; a wheel is a zip file. Check for three things:

Our page on diagnosing missing files covers the usual causes, and the artefact formats reference explains what each format contains.

Step 3: read the registry page as a stranger

Open your package's page on the registry and read it as someone who has never heard of the project. Does the README render correctly, including code blocks and images? Are the repository, homepage and issue tracker links right? Is the licence shown, and is it the one you intended? Do the keywords and description match what the package does? Registry pages are often the first thing a potential user sees, and broken metadata is a small but real signal of carelessness. The guide to package metadata lists the fields that drive this page.

Step 4: check tags and version pointers

Confirm that the version you published is the one the default tag points to, or deliberately is not. On npm, npm view your-package dist-tags shows where latest, next and any other tags point. A prerelease accidentally published as latest will be installed by everyone who does not pin a version, which is exactly the surprise the prerelease guide warns about. Also confirm that the source control tag for the release exists and points to the commit you built from.

Step 5: confirm the changelog and release notes

Make sure the changelog entry is published where users will look, whether that is a file in the repository, a release page, or both. Read it once more with the published behaviour in mind. If the release contains anything users must act on, such as a deprecation, a changed default or a new minimum runtime, that should be the first line, not the fifth. The changelog entry guide has examples.

Step 6: verify provenance and signatures, if you use them

If your release pipeline generates provenance attestations or signatures, check that they appear for this version and that they reference the expected repository and workflow. A missing attestation can mean the release came from somewhere other than your pipeline, which is worth understanding immediately. See the long read on provenance for what these records contain.

Step 7: watch the first signals

For the rest of the hour, keep an eye on the issue tracker, discussion channels and any error reporting you have. The first users to upgrade are often automated: dependency bots and CI pipelines in projects that depend on you. Their failures show up as new issues or comments, sometimes within minutes.

If something is wrong

Registries deliberately make it hard to remove published versions, because other projects may already depend on them. Each ecosystem offers a softer alternative:

EcosystemMain toolEffect
npmnpm deprecateShows a warning on install; the version stays available.
PyPIYanking a releaseInstallers skip it unless it is pinned exactly.
Go modulesretract directiveThe go command avoids the version when resolving.
crates.iocargo yankNew lockfiles will not select it; existing ones still work.

In almost every case the right response is to publish a fixed version quickly, then deprecate, yank or retract the broken one with a message pointing to the fix. Unpublishing is a last resort, governed by each registry's own policy, and it does not undo exposure of anything secret. The Go retract guide and the bad release recovery scenario go into more detail.

Make it a written routine

Put these steps in the repository next to the pre-publish checklist, and run them every time, even for patch releases. Most of them can be automated as a job that runs after publishing, installs from the registry and runs a smoke test. The parts that cannot be automated, such as reading the registry page as a stranger, take five minutes. That is a small price for finding a problem before your users do. For the rest of the release lifecycle, see the Learn hub.