Skip to main content
Version: v1 (Current)

Variants and Releases

Variants maintain editions of one app in its shared repository. Each has a production branch, mutable branch drafts, published releases and a default-version pointer. Use a fork for a separate app/repository.

Publishing creates a release snapshot. Selecting a default and upgrading a project are separate actions.

Create a variant​

  1. Open the app in its owning team with app-management permission.
  2. Open Settings → Variants and choose New variant.
  3. Enter a unique name, preferably lowercase letters, numbers and dashes as recommended by the UI, then choose Create. The server accepts an alpha-dash string up to 60 characters; it does not automatically lowercase or slugify it.
  4. Confirm Trunk, normally variant/{name}. The default variant normally uses main.
  5. Select the new variant in planning, development and publication controls before changing that edition.

Creation stores a variant and numbered mutable trunk draft. The current handler serializes creation on the App row and rejects a preexisting immutable release on that branch with a conflict; choose a different name instead of trying to reopen that release. The new draft seeds its runtime-store flag from the App current version (falling back to enabled), not a full copy of the edition you were editing. It does not copy the default variant's draft configuration or built runtime. With initialized Git, the platform attempts to branch its source from main; those Git files and stored draft configuration are separate state.

Branch creation is best effort: the row can exist while its Git branch is missing. Wait for repository initialization. A later hosted start can reconcile a confirmed missing variant trunk from main; otherwise have the ref investigated before building. Confirm source/configuration rather than assuming creation cloned another edition's complete release state.

Names are unique within the app, and archival does not necessarily free a name for reuse. A variant is a maintained edition, rather than every arbitrary feature branch.

Select the correct draft or release​

Use the title-level version badge/popover in Settings to select variant and draft/published version. See creating an app for selection and the versionless draft entry path. Check identity before editing dependencies, identifiers, actions, configuration, assets or documentation.

An app can contain multiple branch drafts. Builds update the matching unpublished branch/variant draft, rather than one universal “latest draft.” Published snapshots are immutable and their Settings controls are read-only.

Numbers are allocated across the app's version rows, including mutable drafts. Editions have separate histories, but numbers need not start at one or form a consecutive sequence per edition. Record variant, version ID/number, branch and commit together.

Prepare a production artifact​

  1. Finish/review the source change.
  2. Merge or push into the selected variant's production branch.
  3. In Build, confirm the intended branch/commit succeeded.
  4. Inspect verification/logs and review configuration and permission declarations.
  5. Confirm the production draft has completed ingestion and is linked to that exact build.

Developer Hub publication requires a completed draft bundle, stored package, app repository and successful owning build on that variant's production branch with a 40-character hexadecimal commit. Preview, metadata changes or success on another branch do not establish that provenance.

Publication does not currently require verification passed or compare the build commit with latest production HEAD. An older successful build can remain the candidate. Check the attached build/commit after later pushes and wait for the intended replacement artifact.

Publish​

  1. Open Publish and select the variant from its list. The tab initially selects the default, which may differ from the edition you were editing.
  2. Check Trunk branch and the completed bundle badge.
  3. Choose Publish new version, enter Release notes, then choose Publish.
  4. Confirm the response and new row under that variant's Published versions.
  5. Install/select the exact release in a test project using authorized controls and perform the installed-app acceptance below before wider rollout.
  6. After acceptance, choose Set default when appropriate and upgrade the intended projects. Changing this pointer can affect installations that use a current-version fallback, so include them in the rollout decision.

The visible button checks bundle availability/status; the server performs additional repository/branch/commit checks. An enabled button is not evidence those checks or your acceptance tests passed.

Read the Publish page's contexts​

The left-side current-default callout and documentation preview use the App's current version; they do not automatically become the selected variant's release preview. App screenshots are app-wide. Verify the variant's actual production draft and Published versions on the right, then inspect the exact release's configuration and installed runtime. A default callout or app-wide listing preview is insufficient evidence about another edition.

View-only accounts can read release history but cannot publish or set defaults through these controls. When the variant-list request fails, the page clears that list/selection; this is not proof the editions were deleted. Reload and verify the request before recreating anything. Successful publish/default actions reload variant history and shared app metadata. After an uncertain failure, inspect the existing release/pointer before repeating a non-idempotent publication.

What publication records​

Publication snapshots runtime and release configuration, including copied files/assets, into a published numbered version. It retains build provenance, creates a source-pinned release branch/tag and advances the mutable draft's number.

VariantRelease branchTag
Defaultrelease/vNvN
Named editionrelease/{name}/vN{name}-vN

These refs point to the successful build commit, not whatever trunk HEAD is at publication time. Existing matching refs are reusable only when their commit matches. Conflicting refs are publication errors; do not force-move them to conceal a conflict.

Publication and ingestion share an app-version lock. A busy result is a conflict: wait, refresh and recheck. Git refs, file copies and database writes are not one atomic external transaction. On failure, inspect release history/refs before retrying rather than assuming no side effects.

Recover from publication errors​

ResultNext step
No completed production artifactBuild the production branch and wait for ingestion
Missing/foreign/failed build or invalid commitCompare draft build, repository, branch and checkout commit
App versions busyWait for the other operation, refresh and recheck
Runtime file missingInspect package/import storage; rebuild or obtain administrator help
Git/release operation failedInspect error, history and matching/conflicting branch/tag refs
Release appeared after an uncertain responseUse the confirmed release instead of blindly publishing another

These rules describe Developer Hub variant publication. Legacy version controls have different provenance behavior; use this production-build workflow for current variant releases.

Defaults, visibility and installations​

Set default requires a published version belonging to the variant. It changes that variant's pointer; for the default variant it also updates the app's legacy current-version pointer. It does not create an artifact or copy a release into projects.

Project selection is separate. Explicit published-version pins remain on that release when another is published or made default. Some installation types fall back to the app's current version when no pin exists, and mutable-draft installations behave differently. Inspect the installation rather than assuming every consumer follows the default or remains fixed.

Current project page/form/widget models restrict explicit installed-version changes to super admins. Use authorized project controls or involve an administrator with that authority; developer app management alone does not grant upgrade permission.

Public visibility, global-default designation, listing and release status are separate controls. Public/global-default flags require super-admin authority. Publishing does not establish public discovery, project entitlement or portal installation.

Follow Install an App on a Portal for portal-page installation and binding behavior.

Archive an edition​

In Settings → Variants, use Archive variant on a non-default row and confirm the result. The default variant cannot be archived through this operation.

Archival removes it from the active list through soft deletion. Git branches/version history remain. It does not upgrade consumers, roll back projects or guarantee automatic triggers stop. Review installations/references before retirement. Saved planning history can retain an archived variant's identity.

Validate, roll out and roll back​

Review source, build and draft configuration before publication. After publishing, use a test project's exact release selection for installed-app acceptance, then upgrade the remaining projects. Publication alone does not roll out to every consumer. Testing mutable drafts is a separate option and does not replace verification of the published release.

For each candidate:

  • Record app, variant, production branch, draft/build and verified commit.
  • Confirm meaningful tests ran; inspect missing, empty or unverified suites.
  • Review dependencies, actions, identifiers, selectors, assets and documentation on the correct draft.
  • Install the exact release in a test project and resolve bindings.
  • Test guests, allowed/excluded attendees and a participant from another project where relevant.
  • Check inactive-page, authentication and group behavior through navigation and direct API requests.
  • Verify mobile layout, loading, empty data, errors and real-time updates.
  • Record which installations were upgraded, remain pinned or follow a fallback.

Upgrade and rollback​

Upgrade by explicitly selecting a compatible release and checking configuration/schema changes. Roll back an installation by selecting a compatible previous published version with the required authority and verifying bindings again.

Source rollback rebuilds different source for a later release; installed-version rollback selects an existing release. Neither reverses project data mutations/migrations performed by the newer version. Detailed recovery procedures belong in operator runbooks.