Docs / .releasekey.json

.releasekey.json

An optional manifest at the repo root that describes an app's release steps. Safe to commit, because it holds commands, never secrets.

When a repo has a .releasekey.json, its steps come first in Add app and are pre-selected. Collaborators and agents get the same buttons.

Example

{
  "name": "My App",
  "steps": [
    {
      "label": "Supabase: dry run",
      "command": "npx supabase db push --dry-run",
      "kind": "check",
      "watch": ["supabase/migrations"]
    },
    {
      "label": "Supabase: push migrations",
      "command": "npx supabase db push",
      "kind": "migration",
      "watch": ["supabase/migrations"],
      "confirm": true
    },
    {
      "label": "Trigger.dev: deploy tasks",
      "command": "npx trigger.dev@4.4.6 deploy",
      "kind": "deploy",
      "watch": ["src/trigger", "trigger.config.ts"],
      "confirm": true
    }
  ],
  "notes": ["Vercel deploys the web app on merge."]
}

Fields

Field Type Meaning
name string The app’s display name.
steps array Release steps, in release order.
steps[].label string The button text.
steps[].command string Exactly what you’d type in a terminal in the repo folder.
steps[].kind string One of check, migration, deploy, build, other.
steps[].watch string[] Git pathspecs that drive Needs run. Use ["."] for anything. Leave it out for always-manual steps.
steps[].confirm boolean Ask before running. Use true for anything that changes production.
notes string[] Short facts about releasing this app that don’t need a button.

Guidance

  • Order steps the way a release should go: checks, then migrations, then deploys.
  • If the repo has mise tasks or package scripts for these, use them as the command, like mise run db:push, so your terminal and the desk can’t drift apart.
  • Pin the Trigger.dev CLI to the same version as @trigger.dev/sdk in package.json.
  • Never put secrets in commands. Load them from the environment with mise.

Something unclear or out of date? Email hello@releasekey.dev.