Skip to content

Releasing

Copilot edited this page Nov 23, 2026 · 12 revisions

This is the ordered checklist for cutting a release. The rules for updater, signing, and Store behavior are in Release and update workflow below.

Epikrise uses Calendar Versioning. Versions use unpadded CalVer, YYYY.M.MICRO (for example 2026.11.1), where the final number counts fixes within that month. Tags use the same version with a v prefix (v2026.11.1).

Before you start

  • Work from a clean checkout of main, with everything you want released merged into it.
  • Make sure user-visible changes have entries under ## [Unreleased] in CHANGELOG.md.
  • Have an authenticated GitHub CLI (gh auth status) and the pinned git-cliff 2.10.1 for local preparation. Install it with cargo install git-cliff --version 2.10.1 --locked. The local command checks this version before it writes any file.
  • The release GitHub App must be configured (RELEASE_APP_CLIENT_ID, RELEASE_APP_PRIVATE_KEY). See GitHub Actions.

1. Prepare the release

Run the Release preparation workflow from the Actions tab, or run:

pnpm release:prepare:workflow [YYYY.M.MICRO]

Leave the version blank to select the next CalVer version. The workflow updates the npm, Cargo, and Tauri version metadata, generates release notes, and opens a pull request.

Find that pull request:

pnpm release:pr

This runs gh pr list --repo=jerney-nexus/epikrise --state=open --search "head:release/". The VS Code task is Epikrise: Find Release Pull Request.

Its branch is release/<version> and its title is Release <version>.

2. Review and merge the release PR

  • Check the version metadata, release notes, and changelog changes.
  • Update ReleaseNotes for every locale in store-assets/base-metadata.json on the release branch. The PR body lists the locales that are still empty or unchanged since the previous release tag. Store metadata copies them to Partner Center after the Store package is submitted.
  • Make sure every required check passes, including Release PR macOS updater bundle smoke. That gate waits for the macOS updater bundle smoke run on the same head SHA. See Release and update workflow.
  • Merge the PR into main.

3. Check the Windows release workspace

Run the Windows release workspace workflow from the Actions tab on main, or run:

pnpm release:workspace

This starts the workflow on main and watches the new run until it finishes, exiting non-zero if it fails. Both architecture jobs (x64 and ARM64) must pass before you tag.

The VS Code task is Epikrise: Run Windows Release Workspace.

4. Confirm the tag is ready

From a clean worktree on the merged commit:

pnpm release:preflight

This fetches tags, fast-forwards main from origin/main, and reports the project version and whether its tag exists locally and remotely.

5. Create and push the tag

If preflight reports that the tag is absent, run:

pnpm release:tag [YYYY.M.MICRO]

Run it from the clean, synchronized main branch. It checks the version and tag state, then asks you to type PUSH to confirm. It creates an annotated tag and pushes only that tag. It never force-updates a tag. In the VS Code task, leave the version blank to use the current package.json version.

Pushing the v* tag starts the Signed updater release workflow.

6. Wait for the draft release

The Signed updater release workflow builds the packages, stages them, and creates a draft release. Nothing is published yet. See GitHub Actions.

Check the draft's assets, signatures, latest.json, and target URLs:

pnpm release:draft-status

This shows the latest Signed updater release run and whether the draft exists for the package.json version. For a draft, it prints the releases page; open it and select the tag. Drafts are visible only to users with write access to the repository. The VS Code task is Epikrise: Show Draft Release Status.

7. Test the draft natively

On each target you plan to claim as supported, install the draft's assets and check installation and runtime behavior. Record the results in the related issue or PR.

Updater checks cannot be tested on a draft. The updater endpoint only serves the latest published release. A two-version update test and a tampered-bundle rejection test therefore have to wait until a previous signed version is published. Do not claim updater support for a target until both pass on that target. See Release and update workflow.

8. Approve publication

Only after the acceptance evidence is recorded:

  1. Open the Signed updater release run.
  2. Approve the Approve accepted draft release job. It is protected by the release environment and runs only after the draft release includes the updater packages, the Store MSIX packages, and the Store .msixbundle.
  3. The Publish accepted draft release job publishes the draft to opted-in installations.

If any target you are claiming as supported fails its checks, do not approve.

9. After publishing

Confirm the release is visible on GitHub and that latest.json points at the right assets:

pnpm release:published-status

This checks that the release is published, that every latest.json platform URL targets its assets, and whether GitHub marks this release as latest. An older release can finish after a newer one. In that case the workflow keeps the latest marker on the newer tag, and the command reports that instead of failing. The VS Code task is Epikrise: Show Published Release Status.

  • Record updater test results separately from the release, as described in step 7.
  • Store delivery uses a separate Microsoft certification process. See Microsoft Store.

Release and update workflow

Rules for versioning, the updater, and the release gate. Workflow mechanics are in GitHub Actions.

Versioning

  • Derive other version representations (Cargo, Tauri, installers, updater protocol) only for that build or package input. Published versions and tags stay immutable.

Updater

  • Only the Linux AppImage is an updater target. The .deb and .rpm packages are package-managed, so an in-place update would bypass the package database. Do not add them to updater acceptance checks.
  • A passing macOS smoke run does not verify a production signature. Keep signed-release acceptance pending until a native signed run confirms both the archive and its signature.

Release PR gate

  • Every pull request to main must pass Release PR macOS updater bundle smoke. It is the only macOS-related required check. Details are in GitHub Actions.
  • The gate blocks a release PR that changes trusted build inputs, rather than re-verifying it. Only the version fields that release preparation sets may change in package.json, src-tauri/tauri.conf.json, and src-tauri/Cargo.lock.

Signing and approvals

  • Keep signing keys in the approved GitHub Actions secrets. Never commit private signing material or generate or replace a production key in CI.
  • One approval in the release environment releases both the updater build and the Store MSIX build.
  • A Tauri updater signature verifies the update payload. It does not replace platform publisher signing.

Microsoft Store

The Store package is separate from the signed release, the NSIS installer, and the direct-release updater. The direct updater never installs it, and the Store build has no updater code or update checks. Microsoft manages Store updates.

One-time setup

Complete these steps before the first automated submission.

  1. Create the Partner Center app.
  2. In both the store-partner-center and store-partner-center-metadata environments (Settings → Environments), add the variable STORE_PRODUCT_ID with the product ID, and these secrets. Do not add them as repository-level secrets.
    • AZURE_AD_TENANT_ID
    • SELLER_ID
    • AZURE_AD_APPLICATION_CLIENT_ID
    • AZURE_AD_CERTIFICATE_PFX_BASE64 (base64 of the PFX, which contains the private key)
    • AZURE_AD_CERTIFICATE_PASSWORD
  3. Upload the matching .cer to the Entra app registration. See Partner Center certificate.
  4. Record only secret names, never values or the PFX file.
  5. Add every locale from store-assets/base-metadata.json to the Partner Center listings (currently de-ch, en-us, fr-fr, it-it, es-es), then upload the listing images for each by hand. Store metadata fails for any locale missing from the submission.
  6. Generate the poster and superhero images with pnpm store:assets, or pass locale folders to regenerate a subset (for example pnpm store:assets fr it). Without arguments, the generator also writes the language-neutral packaging icon. It needs ImageMagick's convert on PATH and uses the Liberation Serif font. The dev container installs the font but not ImageMagick.

The Store submission and metadata jobs run on windows-latest. The MSIX bundle job runs on windows-2025. See GitHub Actions for the job details.

Submission workflow

The first submission and any manual resubmission are done by hand in Partner Center. After that, the workflows run in this order:

  1. Packages attached to the draft release. The signed release run attaches the unsigned MSIX packages and the .msixbundle before Approve accepted draft release. See GitHub Actions.
  2. Store submission packages verifies the published assets and submits the bundle to Partner Center after approval in store-partner-center. Approve only after the signed release is verified. The version guard fails if the release does not advance past the current submission. See GitHub Actions.
  3. Store metadata syncs the listing from store-assets/base-metadata.json after approval in store-partner-center-metadata. Automatic runs never commit, so review the draft in Partner Center. Dispatch it with commit to publish, or with dry_run to check without changes. See GitHub Actions.
  4. Store base metadata refreshes the snapshot in store-assets/base-metadata.json. Merge the pull request it opens before the next Store metadata run. See GitHub Actions.
  5. Certify and test. Microsoft signs the packages and runs certification. Building the MSIX does not establish certification. On a clean Windows install, record the Windows version and WebView2 status. The package does not bundle WebView2, so the device needs the Evergreen Runtime.

Failure and recovery

  • Store metadata stops before changing anything if the submission is in certification or publishing, a base locale is missing, or a base image is not Uploaded.
  • A draft left in Partner Center blocks the next upload until you commit or delete it. A leftover draft with the same version blocks the version guard.
  • A failed upload does not affect the signed release assets. Fix the cause, remove any leftover draft, and rerun the job.
  • Listing problems: fix them in Partner Center, then rerun Store metadata.

Partner Center certificate

The Store workflows authenticate to Partner Center with a self-signed certificate, not a client secret. The certificate expires 24 months after creation, and the workflows fail after that. Record its NotAfter date and set a reminder at least 30 days before it. The commands below run in Windows PowerShell.

  1. Create the certificate:

    $dir = "$env:USERPROFILE\epikrise-msstore"
    New-Item -ItemType Directory -Force -Path $dir | Out-Null
    $cert = New-SelfSignedCertificate -Subject "CN=epikrise-msstore" `
      -CertStoreLocation Cert:\CurrentUser\My `
      -KeyAlgorithm RSA -KeyLength 2048 -KeyExportPolicy Exportable `
      -NotAfter (Get-Date).AddMonths(24)
    $cert | Select-Object Subject, Thumbprint, NotAfter
  2. Export the public certificate and upload it to the Entra app registration:

    Export-Certificate -Cert $cert -FilePath "$dir\epikrise-msstore.cer"

    In the Entra admin center, open the app registration whose client ID is AZURE_AD_APPLICATION_CLIENT_ID. Go to Certificates & secrets → Certificates → Upload certificate and upload epikrise-msstore.cer. Keep the older certificate until the new one passes a workflow run.

  3. Export the PFX and check its header:

    $pfxPassword = Read-Host -AsSecureString "PFX password"
    Export-PfxCertificate -Cert $cert -FilePath "$dir\epikrise-msstore.pfx" -Password $pfxPassword
    [BitConverter]::ToString([IO.File]::ReadAllBytes("$dir\epikrise-msstore.pfx")[0..15])

    A valid PFX prints 30-82-xx-xx-02-01-03. A .cer prints 30-82-xx-xx-30-82 instead; if you see that, repeat the export. Never commit the PFX or the password.

  4. Set the CI secrets. Encode the PFX as one line and copy it:

    [Convert]::ToBase64String([IO.File]::ReadAllBytes("$dir\epikrise-msstore.pfx")) | Set-Clipboard

    Paste the value into AZURE_AD_CERTIFICATE_PFX_BASE64 in both Store environments. Set AZURE_AD_CERTIFICATE_PASSWORD to the password from step 3.

  5. Test locally. Import the PFX, then run only the read-only checks, substituting the new thumbprint:

    Import-PfxCertificate -FilePath "$dir\epikrise-msstore.pfx" -CertStoreLocation Cert:\CurrentUser\My -Password $pfxPassword
    msstore reconfigure --tenantId <tenant> --sellerId <seller> --clientId <client> --certificateThumbprint <thumbprint>
    msstore info

    Do not run updateMetadata, publish, or submission publish as a test.

  6. Finish the renewal:

    • Run Store base metadata (manual dispatch) and confirm it passes with the new secrets.
    • Delete the old certificate from the Entra app registration.
    • Delete the local .pfx and .cer files, then clear the clipboard with Set-Clipboard -Value ' '.
    • Renew before the old certificate expires.

Never

  • Commit private signing keys or generate or replace a production key in CI. Keys live in the approved GitHub Actions secrets.
  • Move or re-create a published tag.
  • Publish a release while a claimed platform has failing acceptance checks.
  • Upload a Store package whose version does not advance over the last Partner Center submission.

Clone this wiki locally