Skip to content

Releases

Castcut ships from GitHub Releases on vX.Y.Z tags. Each release publishes a container image to GHCR and desktop installers (.dmg, .exe, .deb, .AppImage). See Desktop app.

Linux day-to-day: recommend the .deb (links system WebKitGTK). Ship the AppImage as the portable option; it embeds Ubuntu WebKit and is a better match on Ubuntu/Debian than on Arch/Fedora.

The first tagged GitHub Release was Initial-Release (July 2026). Later cuts use semver tags (v0.2.0, …) so notes and images stay comparable.

Cut a release (preferred)

Clone from github.com/doodersrage/castcut (former llm-prompt-studio / comfyui-prompt-studio URLs redirect here).

  1. Merge whatever should ship to main.
  2. Actions → Release → Run workflow.
  3. Choose patch / minor / major (from package.json).
  4. Run. The workflow:
  5. refuses to start unless CI passed on the commit it releases (it waits up to 45 minutes while CI is still running; see below)
  6. runs lint, unit tests, and next build
  7. bumps package.json / package-lock.json and pushes Release vX.Y.Z plus tag vX.Y.Z
  8. creates the GitHub Release with generated notes
  9. builds and pushes ghcr.io/doodersrage/castcut:X.Y.Z and :latest
  10. builds desktop installers and attaches them to the GitHub Release

Use dry run to print the next version without tagging.

If the GitHub Release was created but Docker/desktop did not run (for example gh release create hit a GitHub 503), re-run Actions → Release with existing_tag set to vX.Y.Z. That skips the version bump and publishes installers and the container image for the tag that already exists.

Releases must be cut from main. GITHUB_TOKEN cannot start a second workflow, so the same run both tags and publishes.

Tag from a checkout

If you already bumped the version locally:

npm version minor --no-git-tag-version   # or patch / major
git add package.json package-lock.json
git commit -m "Release v$(node -p "require('./package.json').version")"
git tag "v$(node -p "require('./package.json').version")"
git push origin main --tags

Pushing v*.*.* runs the same publish path (tests, GitHub Release, image) without a second version bump.

Install a release

docker pull ghcr.io/doodersrage/castcut:latest
docker run -d --name castcut --restart=always -p 47832:47832 -v castcut_data:/data \
  -e PROMPT_AUTH_ENABLED=true -e COMFYUI_API_URL=http://<comfyui-host>:8188 \
  ghcr.io/doodersrage/castcut:latest
docker logs castcut   # the one-time setup code for the admin account

Open http://<host>:47832, create the admin with that code. The session secret is generated into the castcut_data volume.

With Compose, use the docker/ folder. For a Docker-host-only install (-p 127.0.0.1:…, sign-in off), see Configuration — Docker: it also needs -e PROMPT_BIND_HOST=127.0.0.1.

Images from before the rename (ghcr.io/doodersrage/llm-prompt-studio) were removed on 2026-10-18; use ghcr.io/doodersrage/castcut. Pin a version with the vX.Y.Z tag instead of latest. Env vars and Compose: Configuration & deployment.

Docker Hub (optional)

The workflow also pushes doodersrage/castcut when these repository secrets exist:

Secret Value
DOCKERHUB_USERNAME Docker Hub user
DOCKERHUB_TOKEN Access token (not the account password)

If login fails, GHCR still publishes and the GitHub Release still goes out.

The first GHCR package is private until you open Packages → castcut → Package settings → Change visibility → Public.

write_package on ghcr.io/doodersrage/castcut is an account setting, not an app-code fix. If the Release workflow logs denied: permission_denied: write_package, grant this repo's Actions token write access on that package (Packages → castcut → Package settings → Manage Actions access) and re-run the failed publish job. GitHub Release assets can still succeed when the image push is denied.

Optional fallback: repo secret GHCR_TOKEN (classic PAT with write:packages). The Release workflow uses it for GHCR login when set.

README screenshots

docs/screenshots/*.png (film, day, phone-day, cast, story, phone-scene, cut, pose-editor) are retaken by a script rather than by hand. Start the app, then run:

npm run screenshots                                   # against http://127.0.0.1:47832
npm run screenshots -- --url http://127.0.0.1:47961   # or SCREENSHOTS_URL / PROMPT_API_URL
npm run screenshots -- --only day,phone-day           # just some of them
npm run screenshots -- --out /tmp/shots               # somewhere other than docs/screenshots

The script (scripts/screenshots.mts, Playwright) seeds a demo install into the browser the way the e2e specs do: the Cast "Nora" (and Tomas, Sam, Nova), a finished four-slot Day, and a three-scene Story. The stills are the bundled samples in public/samples/, so you need no demo install and no renders. It shoots in light theme and the Film workspace, at 1440×900 for desktop and 390×844 @2x for the phone. Every API write is stubbed, so nothing is queued or uploaded to the ComfyUI behind the app. With sign-in on, it logs in with PROMPT_E2E_USERNAME / PROMPT_E2E_PASSWORD (or PROMPT_ADMIN_* from .env.local). Look at the PNGs before committing them: banners that depend on the server (missing model files, engine health) can still show.

Notes

  • GitHub auto-generates the changelog from commits since the previous published release (today that is Initial-Release until the next cut).
  • Source zip/tarball attachments are added by GitHub; there is no npm publish (private: true).
  • Playwright e2e is not part of the release job: CI runs it on main, and the release's first step (scripts/ci-status.mjs) refuses a commit whose CI run failed, was cancelled, or never ran. A Release vX.Y.Z commit with no CI run of its own (the workflow's) is judged by its parent. Check any commit yourself with npm run ci:status (HEAD) or node scripts/ci-status.mjs --sha <sha> [--wait <minutes>] — exit 0 passed, 1 failed or no run, 2 still running. Fix main before cutting if CI is red.