Publish a release¶
Releases are made by publishing a GitHub release. The Python CLI and the TypeScript client are versioned and released independently; the release's tag prefix decides which package it publishes:
| Package | Version lives in | Release tag | Workflow |
|---|---|---|---|
loconym on PyPI |
builder/src/loconym/__init__.py (__version__) |
py-vX.Y.Z |
wheel.yml |
loconym on npm |
client/package.json (version) |
js-vX.Y.Z |
npm-publish.yml |
Both workflows fail early if the tag doesn't match the version in the package. Once the package is published, the built files (sdist and wheel, or the npm tarball) are attached to the GitHub release.
Release the Python CLI¶
- Bump
__version__inbuilder/src/loconym/__init__.py, e.g. to0.1.0, and merge the change tomain. -
Create and publish a release whose tag is
py-v0.1.0, targetingmain. In the web UI: Releases → Draft a new release, type the new tag name, and choose Publish release. Or with the GitHub CLI:
wheel.yml builds the sdist and wheel, tests the wheel on Python 3.11–3.14 (Linux and macOS), uploads to PyPI and
attaches both files to the release. To check the artifacts locally first:
For a pre-release, use a pre-release version such as 0.2.0rc1 (tag py-v0.2.0rc1). PyPI marks it as a
pre-release, so pip install loconym keeps installing the latest stable version.
Release the TypeScript client¶
- Bump
"version"inclient/package.json, e.g. to0.1.0, and merge the change tomain. The version must be new: the bootstrap version you published by hand can't be released again. -
Create and publish a release whose tag is
js-v0.1.0, targetingmain, in the web UI or with:npm-publish.ymltests and builds the client, stages it on npm and attaches the package tarball to the release. The run's summary shows the staged version. -
Approve the staged version. It isn't installable until you do. On npmjs.com, open loconym → Staged Packages and approve it (2FA required), or from the command line:
If you tick Set as a pre-release (--prerelease with gh), the version is staged under the next dist-tag
instead of latest, so npm install loconym keeps installing the latest stable version. Use a pre-release version
such as 0.2.0-rc.1 (tag js-v0.2.0-rc.1) for those. The dist-tag is fixed once staged: to change it, reject the
staged version and publish the release again.
To see exactly what would be published without publishing, run the npm workflow manually from the Actions tab with dry-run checked (the default).
Note
Saving a release as a draft doesn't publish anything. The workflows run when the release is published.
Format compatibility¶
The database format version is independent of both package versions.
A client accepts any database with format major version 0. When you change the format incompatibly, release the
builder and the client together.