release-desktop
/release-desktop
Opisuje wydanie desktopowej aplikacji Sapiom Studio przez tag vX.Y.Z na main po podbiciu wersji w changesets.
- Autor
- sapiom ↗
- Repozytorium
- sapiom-js ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Opisuje wydanie desktopowej aplikacji Sapiom Studio przez tag vX.Y.Z na main po podbiciu wersji w changesets.
Wyzwalacze z opisu
Oryginalny opis (EN)
How to cut a Sapiom Studio desktop release (@sapiom/harness-desktop) in this repo. The release is TRIGGERED BY PUSHING A GIT TAG on main — `vX.Y.Z` — after versions are bumped via changesets. Use whenever asked to "release", "cut/make a release", "ship a new version", "publish/tag the desktop app", "do a release", or asked whether something "is ready to release / version bumped".
Jak działa
- The invariant that governs everything
- Tag conventions (drive the update channel)
- The full flow
- Answering "is the version bumped / ready to release?"
- Related, don't confuse
Podgląd SKILL.md
---
name: release-desktop
description: How to cut a Sapiom Studio desktop release (@sapiom/harness-desktop) in this repo. The release is TRIGGERED BY PUSHING A GIT TAG on main — `vX.Y.Z` — after versions are bumped via changesets. Use whenever asked to "release", "cut/make a release", "ship a new version", "publish/tag the desktop app", "do a release", or asked whether something "is ready to release / version bumped".
---
# Releasing the Sapiom Studio desktop app
The desktop app ships as **signed installers** (dmg/zip on macOS, AppImage/deb on
Linux, nsis on Windows), NOT to npm. A release is cut by **pushing a git tag on
`main`**; version bumping is handled by **changesets** first.
## The invariant that governs everything
The tag **must equal** `packages/harness-desktop/package.json`'s `version`
exactly (e.g. tag `v0.2.4` ⇔ version `0.2.4`). The
`desktop-release.yml` `prepare` job fails fast on a mismatch. `package.json` — not
the tag — is the source of truth for the artifact names and the app's self-reported
version and update channel.
## Tag conventions (drive the update channel)
| Tag | Release | Channel |
| --- | --- | --- |
| `v1.2.3` | final | `latest` (everyone) |
| `v1.2.3-beta.1` | pre-release | `beta` (opted-in only) |
`workflow_dispatch` (manual run of desktop-release.yml) builds artifacts only — no
tag, no publish. Useful to smoke a build without releasing.
## The full flow
1. **Every fix/feature PR carries a changeset.** `.changeset/<name>.md` with the
bumped package(s) and a summary. Format:
```md
---
"@sapiom/harness-desktop": patch
"@sapiom/harness": patch
---
One-paragraph, user-facing description of the change.
```
- A change only in `@sapiom/harness` needs only that entry — `harness-desktop`
gets a **patch** bump automatically (changeset config
`updateInternalDependencies: "patch"`, since it depends on
`@sapiom/harness` via `workspace:^`). But if you want the desktop CHANGELOG
to *describe* a desktop-side fix, add an explicit `@sapiom/harness-desktop`
entry too.
- **If a PR merged without a changeset, its fix ships silently** (no changelog
entry). Add the missing changeset before releasing — a later PR's changeset
file is fine; changesets are just release-note artifacts on `main`.
- Check coverage: `ls .changeset/*.md` (ignore README.md) and read each header.
2. **Merge the PRs to `main`.** Changesets accumulate on `main`.
3. **The version-PR is automatic — and self-updating.** `.github/workflows/release-pr.yml`
(changesets/action@v1, on push to `main`) opens/updates a
**"chore: version packages"** PR that runs `pnpm run version-packages`
(= `changeset version` + regenerate the version fallback + `pnpm install
--lockfile-only`). That PR **consumes the changesets**, bumps every affected
`package.json`, and writes the `CHANGELOG.md`s.
- You normally do NOT run `changeset version` by hand — let the PR do it. (If
you must locally: `pnpm run version-packages`.)
- **Every push to `main` force-pushes the PR's branch** (`changeset-release/main`)
with a fresh run, so a feature PR merged a minute ago is already in it —
never edit the version PR by hand and never "update" it manually. If it
looks stale, check that the latest `release-pr.yml` run succeeded on main's
HEAD SHA (`gh run list --workflow release-pr.yml --limit 1`) rather than
touching the branch.
- **Expected oddity, not a mistake:** packages that *peer-depend* on a bumped
package get a **major** (changesets' default for peer dependents on any
minor). This is why `@sapiom/cli` (peer-deps `@sapiom/harness`) jumps a
whole major with only "Updated dependencies" in its changelog — 2.0.0 →
3.0.0 → 4.0.0 → 5.0.0 all happened this way. Don't "fix" it during a release.
4. **Merge the "chore: version packages" PR — the release is BLOCKED until this
lands.** The tag in step 5 must equal the version this PR writes, so there is
no tagging before it merges. Branch protection requires **1 approving
review** (the PR author is the github-actions bot, so any maintainer —
including you — can approve): `gh pr review <num> --approve` then
`gh pr merge <num> --squash` once CI (CodeQL) is green. Now `main` has the
bumped `packages/harness-desktop/package.json` version + changelogs. Note the
new version, e.g. `0.2.4`.
5. **Tag and push on `main`** (this is the actual release trigger):
```bash
git checkout main && git pull
v=$(node -p "require('./packages/harness-desktop/package.json').version") # e.g. 0.2.4
git tag "v$v" # add a -beta.N suffix for a beta
git push origin "v$v"
```
From a worktree (don't touch the user's main checkout), the equivalent is
tagging main's HEAD directly:
```bash
git fetch origin main
v=$(git show origin/main:packages/harness-desktop/package.json | node -p "JSON.parse(require('fs').readFileSync(0,'utf8')).version")
git tag "v$v" origin/main && git push origin "v$v"
```
This starts `desktop-release.yml`: `prepare` (version/channel + tag match) →
one build job per OS (sign + notarize on macOS) → uploads the installers +
`latest*.yml`/`*.blockmap` update metadata to the GitHub Release.
6. **Watch it.** macOS notarization can take ~35 min (job cap is 75). Don't kill a
build that looks stuck in signing — read the diagnostic first (see
`packages/harness-desktop/CLAUDE.md` → macOS).
## Answering "is the version bumped / ready to release?"
- Current version: `node -p "require('./packages/harness-desktop/package.json').version"`.
- Existing tags: `git tag --list 'v*' | tail`.
- Pending changesets (what the NEXT bump will include): `ls .changeset/*.md`.
- If `package.json` still equals the latest tag, the version is **not yet bumped** —
the "chore: version packages" PR (step 3–4) must merge before you can tag.
## Related, don't confuse
- `publish.yml` publishes the **npm** packages (`@sapiom/harness`, `@sapiom/tools`,
…) on version bump — separate from the desktop installer release.
- Full desktop packaging/signing gotchas live in
`packages/harness-desktop/CLAUDE.md` (asar, node-pty rebuild, mac signing secrets,
the `--smoke` gate). Read it before touching the build itself.
Wersje
W bazie nie ma innych skilli o nazwie release-desktop.
Migawka bazy z 13.11.2026 · wersja paczki 6a92a54b7a97 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100release-publish
Przygotowuje wydanie lub prerelease aplikacji ClawWork na desktop i publikuje tag wersji po potwierdzeniu. - 100version-release
Podbija wersję, tworzy tag wydania i wypycha tag do repozytorium. - 100release
Przygotowuje wydanie cryptobot-python: podbija wersję pakietu, aktualizuje HISTORY.md, tworzy tag i wydanie GitHub. - 100cut-release
Przeprowadza wydanie agnostic-ai od początku do końca: tag i wydanie na GitHubie, gdy użytkownik chce wypuścić nową wersję. - 100nvidia-nemoclaw-maintainer-cut-release-tag
Wydaje nową wersję semver: podbija numery wersji skryptem bump-version.ts, otwiera pull request wydania, a po scaleniu taguje main i wypycha tag. - 96tag-release
Przygotowuje wydanie łatki, wersji minor albo major, czyli tag i wydanie zgodne z numeracją wersji.