Release a component¶
Releasing a component version is a two-step process: first promote a snapshot to a release candidate, then release the RC once it has been reviewed. The released version is immutable — you cannot edit or delete it, ever.
When to release¶
When the component's interface is stable and downstream consumers need a guaranteed-not-to-change reference. Pre-release iteration should happen on snapshots.
Step 1 — Promote to release candidate¶
Identify the specific snapshot you want to promote (including its full date-and-sequence suffix) and run:
The RC reference (1.0.0-RC-1) is assigned automatically. The snapshot
itself is unchanged; a new RELEASE_CANDIDATE entry is created in the
registry.
Multiple snapshots can be promoted before any RC is released — each
promotion increments the RC counter (RC-1, RC-2, …). All RCs for
the same semver remain valid; any of them can be released as long as
the semver has not yet been released.
Step 2 — Release the RC¶
After review, release the RC:
The registry now has a RELEASED version at 1.0.0. Any subsequent
register attempt with the same released version is rejected — bump the
version (1.0.1, 1.1.0, 2.0.0) for any future change.
Prerequisites for release¶
The release command enforces two rules:
- All declared dependencies must already be released. You cannot
release a component that depends on a snapshot or on a release
candidate — a release candidate may still be abandoned, so it is no
firmer a foundation than a snapshot. Release a dependency graph
leaves-first: every dependency reaches
RELEASEDbefore anything depending on it does. - Dependency integrity — the declared dependencies in the registry must match the ones the component was actually built against.
If either check fails the command reports which dependencies are the problem.
Materials and their schemas¶
A material's only dependency is its material schema, so the schema is
released first and the materials bound to it afterwards — the
leaves-first rule above. Referencing a material from a configuration
creates no component dependency: a configuration pins the material
version it refers to, and overrides or an inline material live in the
configuration alone. "Updating water" therefore means releasing
water:1.1.0; configurations keep 1.0.0 until they are moved.
Versioning rules at release¶
- The new version must be exactly the next valid sequential version
per semver. After
1.2.3you can release1.2.4,1.3.0,2.0.0— not1.5.0skipping minors. - A snapshot of the same semver can be re-registered freely while it co-exists with an RC; once the version is released no new snapshots of that semver can be registered.
Suggested workflow¶
- Iterate on snapshots (
1.0.0-SNAPSHOT-…) until you're satisfied. Keep downstream consumers on the-SNAPSHOT-latestreference for the dependency so they can co-iterate. - When a version is ready for testing, promote it to a release candidate:
You can optionally tag the snapshot in git at this point:
New snapshot versions can still be registered while the RC is under
review — if a follow-up snapshot looks better, promote it to get
RC-2 and release that instead.
- When the RC has been tested, release it:
Optionally tag the release in git:
- Bump the version for the next iteration (e.g. update
reference = "...:1.0.1"on the.ktsand continue). - Notify downstream consumers; encourage them to pin to the released version when their next release lines up.
Permissions¶
You need DEVELOP permission or higher on the component. MEMBER
permission or higher on the component group (directly or inherited
from a parent group) grants that for every component in the group,
and so does being an admin of your organization.
Recovery from a botched release¶
There is no recovery for a registered released version. If the
content is broken, the right move is to bump the version
(1.0.1) and release the fix. The broken 1.0.0 stays in the
registry forever; consumers move forward.
Cross-references¶
- Concepts: components and versions — versioning rules and the full state machine.
- Register a component — the CLI command and its options.