Skip to main content

Releasing

Seven artifacts publish to four registries (Docker Hub, Maven Central, npm and PyPI), each from its own tag. The Go and Swift SDKs are not uploaded anywhere: they are fetched from this repository by tag. A push to main publishes only a main-<sha> Docker image.

What publishes, and from what​

artifactregistrytrigger
Docker image :main-<sha>Docker Hubpush to main
Docker image :x.y.z, :x.y and :latestDocker Hubtag v* (latest only for a stable vX.Y.Z)
idenplane-java-coreMaven Centraltag java-v*
idenplane-mcpnpmtag mcp-v*
idenplane-sdk (JavaScript SDK)npmtag sdk-v*
Android SDKMaven Centraltag android-v*
idenplane (Python SDK)PyPItag py-v*
Go SDK (packages/idenplane-go)the Go module proxy, from this repositorytag packages/idenplane-go/vX.Y.Z, pushed by tag-go-sdk.yml for every vX.Y.Z
Swift SDK (Package.swift at the root)Swift Package Manager, from this repositorytag vX.Y.Z itself

Merging dev → main therefore does not move the Docker latest tag that the quickstart docs tell people to pull, and does not touch Maven Central or npm: each needs its tag.

The Android tag, like the Java one, only uploads a validated deployment to the Central Portal (publish-android.yml); someone has to press Publish there, as described for Java below.

Server release (v*)​

release-version-check.yml refuses the tag unless these agree, so do them first:

  1. Bump version in package.json.
  2. Set appVersion in helm/idenplane/Chart.yaml to the same version, and bump the chart's own version. The chart pulls the image tagged with appVersion by default.
  3. Add the matching CHANGELOG.md entry.
  4. Merge to main.
git checkout main && git pull
git tag -a v0.4.1 -m "0.4.1"
git push origin v0.4.1

A mismatch between the tag, package.json, the chart and the changelog fails the check. The check runs alongside docker-publish.yml and does not stop it, so the image may still be pushed: get the versions right before you tag.

Java SDK release (java-v*)​

# 1. bump the version across all six poms — not by hand
cd packages/idenplane-java
./mvnw versions:set -DnewVersion=1.1.0 -DgenerateBackupPoms=false
./mvnw clean verify

# 2. merge that to main, then:
git checkout main && git pull
git tag -a java-v1.1.0 -m "idenplane-java 1.1.0"
git push origin java-v1.1.0

versions:set rather than editing by hand: there are six poms (the parent and five modules) and the publish workflow compares the tag against idenplane-java-core's resolved project.version. Hand-editing five of six is a failed release.

The tag does not finish the release​

One deliberate manual step

autoPublish is false in the parent packages/idenplane-java/pom.xml. The tag builds, signs and uploads the bundle, and it lands in the Central Portal as a validated deployment — not a public one.

Someone then has to press Publish at central.sonatype.com/publishing/deployments.

Until that happens, maven-metadata.xml still lists the previous version and the new jar 404s. That is not a sync delay; nothing has been released yet.

This is on purpose. Maven Central has no unpublish — a wrong version number or a bad artifact is permanent, and every consumer's build can resolve it forever. The validated stage is the last point at which a mistake costs nothing: Drop it in the Portal and re-tag.

Setting autoPublish=true would remove that stage and make git push --tags immediately irreversible. Don't, unless you have decided that trade deliberately — the comments in pom.xml and publish-java.yml explain the reasoning at the point where someone would change it.

Which modules actually publish​

Only idenplane-java-core. idenplane-java-spring, -reactive, -jakarta and -spring-sample build and test in the reactor but are not deployed.

Worth knowing when judging a version bump: a change confined to -spring — the Spring Boot 4 / Security 7 migration, for instance — does not reach any Maven Central consumer at all.

MCP server (mcp-v*)​

cd packages/idenplane-mcp
npm version 1.2.0 # updates package.json and creates a commit
# merge to main, then:
git tag -a mcp-v1.2.0 -m "idenplane-mcp 1.2.0"
git push origin mcp-v1.2.0

Publishes straight to npm — no validated stage, no second chance. npm allows unpublishing within 72 hours, and only if nothing depends on the version yet.

JavaScript SDK (sdk-v*)​

cd packages/idenplane-js
npm version 1.1.0 --no-git-tag-version # updates package.json and the lockfile
# merge to main, then:
git tag -a sdk-v1.1.0 -m "idenplane-sdk 1.1.0"
git push origin sdk-v1.1.0

publish-sdk.yml checks the tag against package.json, typechecks, tests and builds before npm publish. As with the MCP server there is no validated stage.

Python SDK (py-v*)​

# set version in packages/idenplane-python/pyproject.toml, merge to main, then:
git tag -a py-v0.4.0 -m "idenplane (Python) 0.4.0"
git push origin py-v0.4.0

publish-python.yml checks the tag against pyproject.toml, runs the tests, builds and checks the wheel and sdist, then uploads them with PyPI trusted publishing. The idenplane project on PyPI must name this repository, publish-python.yml and the pypi environment as a trusted publisher. PyPI never lets a version be uploaded twice, even after it is deleted.

Go and Swift SDKs (with the server release)​

Nothing to do. The Go SDK is a module in a subdirectory, which Go finds through tags named packages/idenplane-go/vX.Y.Z. tag-go-sdk.yml adds that tag on the same commit whenever a vX.Y.Z tag is pushed. To tag an older release, run it by hand with the release tag. The Swift package is resolved from the vX.Y.Z tag through the root Package.swift.

Choosing a version number​

The published artifact's own code is not the whole story. Its dependency tree reaches consumers too.

The 1.1.0 Java release is the example: idenplane-java-core's source had not changed at all since 1.0.0, but its managed nimbus-jose-jwt moved 10.0.2 → 10.9.1 — the library doing JWT signature verification for every consumer. That is a minor, not a patch, even with a zero-line source diff.

  • patch — bug fix, or a dependency bump nobody's build behaviour depends on
  • minor — new API, or a dependency move consumers inherit
  • major — a break consumers of that artifact will actually experience. A break in a module nobody publishes is not a major.

After a release​

  • Check the workflow finished, not just that it started. A publish job going red halfway leaves the previous version live and the new one absent.
  • For Java, check the Portal — a green workflow means "uploaded and validated", not "released".
  • Confirm the artifact resolves. curl -sI https://repo.maven.apache.org/maven2/com/idenplane/idenplane-java-core/<version>/idenplane-java-core-<version>.jar should be 200, though Central sync can lag a few minutes after Publish.