Skip to content

Releases

Release guarantees are defined by CIR-004 through CIR-008 and CIR-011 and the dependency contract. This page describes the maintainer procedure without redefining those guarantees.

Between releases

After a release, .version stays at the published value. Ordinary pull requests, including Dependabot updates, add their user-visible notes to the existing ## [Unreleased] section of CHANGELOG.md and keep .version unchanged. Any number of merged pull requests can share that section; a merge does not imply a release. CI accepts the unchanged version only while it is already published as a GitHub Release, and requires a higher version otherwise.

When a pull request changes CHANGELOG.md, the PR-body workflow copies the newest populated level-two section, normally ## [Unreleased], into one marker-delimited block of the pull-request description. Text outside that block is preserved by CI. Agents must never manually write or edit any part of the PR body; update the changelog and let CI generate the description.

Pull request candidates are not releases. For every push of a same-repository pull request whose .version differs from its base, CI builds the native executables with the version X.Y.Z-prN.gSHORTSHA and its candidate job publishes the smoke-tested Linux executables as that prerelease. Only the newest candidate per pull request is kept, and publishing release vX.Y.Z removes its candidates. A candidate is never latest and does not affect PyPI. Install instructions are in the headless service guide.

Prepare

  1. Update .version to the intended SemVer value.
  2. Update agent-manifest.json to the same value.
  3. Move the accumulated ## [Unreleased] notes into a new dated ## [X.Y.Z] - YYYY-MM-DD section directly below it and keep the empty ## [Unreleased] heading for later work.
  4. Update versioned installation examples when the release should become the documented stable version.
  5. Run make lock-check. If dependency requirements changed, run make lock and include uv.lock. Use make refresh-dependencies only when dependency upgrades are intended for this release.
  6. Run make ci, make package, and make smoke on Linux.

make verify-release checks version ownership and changelog structure. make release-notes extracts the current changelog entry into the artifact consumed by the release workflow. The PyPI project trusts repository kogeler/joplin-md-sync, workflow release.yml, and GitHub Environment pypi; the environment stores no PyPI token because the publish job uses OIDC.

Review artifacts

Before tagging, inspect dist/ and dist/SHA256SUMS.txt. The source archive, wheel, zipapp, and native executable must report the intended version and pass their smoke checks. Never edit generated checksums or release notes.

Publish

Merge or push the reviewed release commit to main. Do not create or move the version tag manually. The main-branch release workflow checks whether the exact version already has a published GitHub Release, reuses the CI gate, builds wheel and sdist once, and combines them with the remaining artifacts in the vX.Y.Z GitHub Release first. Only after that release succeeds does it publish the same wheel and sdist through PyPI Trusted Publishing, because PyPI never accepts a file name again once it was used.

The workflow decides from that external state on every direct main push, not from changed paths or a .version diff. A published GitHub Release makes every later push a no-op, even after unreleased merges have moved main past its tag. Until then, each push retries the whole release from its own commit: a failure before or during GitHub publication leaves nothing public, and an unpublished draft from the failed attempt is replaced. When PyPI already holds the version, for example after an earlier interrupted release, the PyPI step is skipped and the existing files stay as they are. If the PyPI step fails after the GitHub Release was published, re-run that failed job while the run's artifacts are still available. After PyPI, the workflow publishes io.github.kogeler/joplin-md-sync to the official MCP Registry through GitHub OIDC; directories that mirror the registry pick it up from there. The registry verifies the PyPI package through the mcp-name line in the README, so a failure right after PyPI publication is usually a propagation delay: re-run that job. make mcp-registry-check validates the generated server.json locally and in CI, and make mcp-registry-publish publishes it by hand after a GitHub device login. Confirm the GitHub release body, complete asset inventory, and checksums plus the PyPI wheel, sdist, and provenance after publication, and the version at https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.kogeler/joplin-md-sync. The documentation site is deployed separately from the default branch by the Pages workflow.

Post-release

Install the exact version from PyPI and run the documented version and update-check commands, then verify that the headless installer resolves the new stable tag and checksum metadata. Record any corrective change as a new version; never replace a package file, tag, or release asset after publication.