Repository navigation
Releasing
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).
- 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 pinnedgit-cliff2.10.1 for local preparation. Install it withcargo 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.
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:prThis 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>.
- Check the version metadata, release notes, and changelog changes.
- Update
ReleaseNotesfor every locale instore-assets/base-metadata.jsonon 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.
Run the Windows release workspace workflow from the Actions tab on main, or run:
pnpm release:workspaceThis 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.
From a clean worktree on the merged commit:
pnpm release:preflightThis fetches tags, fast-forwards main from origin/main, and reports the project version and whether its tag exists locally and remotely.
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.
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-statusThis 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.
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.
Only after the acceptance evidence is recorded:
- Open the Signed updater release run.
- Approve the Approve accepted draft release job. It is protected by the
releaseenvironment and runs only after the draft release includes the updater packages, the Store MSIX packages, and the Store.msixbundle. - 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.
Confirm the release is visible on GitHub and that latest.json points at the right assets:
pnpm release:published-statusThis 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.
Rules for versioning, the updater, and the release gate. Workflow mechanics are in GitHub Actions.
- Derive other version representations (Cargo, Tauri, installers, updater protocol) only for that build or package input. Published versions and tags stay immutable.
- Only the Linux AppImage is an updater target. The
.deband.rpmpackages 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.
- Every pull request to
mainmust 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, andsrc-tauri/Cargo.lock.
- 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
releaseenvironment 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.
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.
Complete these steps before the first automated submission.
- Create the Partner Center app.
- In both the
store-partner-centerandstore-partner-center-metadataenvironments (Settings → Environments), add the variableSTORE_PRODUCT_IDwith the product ID, and these secrets. Do not add them as repository-level secrets.AZURE_AD_TENANT_IDSELLER_IDAZURE_AD_APPLICATION_CLIENT_ID-
AZURE_AD_CERTIFICATE_PFX_BASE64(base64 of the PFX, which contains the private key) AZURE_AD_CERTIFICATE_PASSWORD
- Upload the matching
.certo the Entra app registration. See Partner Center certificate. - Record only secret names, never values or the PFX file.
- Add every locale from
store-assets/base-metadata.jsonto the Partner Center listings (currentlyde-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. - Generate the poster and superhero images with
pnpm store:assets, or pass locale folders to regenerate a subset (for examplepnpm store:assets fr it). Without arguments, the generator also writes the language-neutral packaging icon. It needs ImageMagick'sconvertonPATHand 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.
The first submission and any manual resubmission are done by hand in Partner Center. After that, the workflows run in this order:
-
Packages attached to the draft release. The signed release run attaches the unsigned MSIX packages and the
.msixbundlebefore Approve accepted draft release. See GitHub Actions. -
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. -
Store metadata syncs the listing from
store-assets/base-metadata.jsonafter approval instore-partner-center-metadata. Automatic runs never commit, so review the draft in Partner Center. Dispatch it withcommitto publish, or withdry_runto check without changes. See GitHub Actions. -
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. - 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.
-
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.
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.
-
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
-
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 uploadepikrise-msstore.cer. Keep the older certificate until the new one passes a workflow run. -
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.cerprints30-82-xx-xx-30-82instead; if you see that, repeat the export. Never commit the PFX or the password. -
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_BASE64in both Store environments. SetAZURE_AD_CERTIFICATE_PASSWORDto the password from step 3. -
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, orsubmission publishas a test. -
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
.pfxand.cerfiles, then clear the clipboard withSet-Clipboard -Value ' '. - Renew before the old certificate expires.
- 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.
Epikrise wiki
Using Epikrise
Developing
Maintaining