Skip to content
Docs

Getting started

This page takes you from an empty setup to your first release. It takes about half an hour, most of it spent on the GitHub App.

You need:

  • A GitHub repository, and GitHub Actions turned on.
  • Node 24 or newer on the machine where you run the CLI. (The GitHub Action brings its own Node.)
  • Owner rights in the GitHub org, to create a GitHub App. See GitHub App setup.

In the root of your repo:

Terminal window
npx launchset init

init looks at your repo and asks a few questions. It finds:

  • the current version (package.json, native projects, existing git tags),
  • Dockerfiles, Android and iOS projects, Capacitor and Expo apps,
  • existing release machinery that would conflict with launchset, like workflows that run on v* tags.

It never lowers a version without asking, and it never creates a release tag for a version that might never have been built.

Then it writes:

File What it is
launchset.config.ts Your configuration.
.launchset/README.md A short explanation for your team.
.github/workflows/launchset-check.yml The PR check.
.github/workflows/launchset-release.yml The release workflow.
.github/workflows/launchset-preview.yml Preview builds (only when previews are not switched off).
CHANGELOG.md Only if you have none.
.claude/skills/launchset/SKILL.md and AGENTS.md Instructions for AI agents (optional).

At the end it prints what is left to do by hand. Want to see what it would do first? Run npx launchset init --detect. That writes nothing.

A minimal config looks like this:

launchset.config.ts
import { defineConfig } from "launchset";
export default defineConfig({
targets: {
api: { type: "docker", image: "ghcr.io/acme/api" },
android: {
type: "android",
source: { kind: "gradle", file: "android/app/build.gradle" },
},
},
});

Everything you leave out uses its default. See the configuration reference.

Open .github/workflows/launchset-release.yml. The build job runs once per target. It already contains:

  1. a checkout of the release commit,
  2. stamp: writes the version and build number into the target’s files,
  3. verify: asks the store or registry whether this version was already uploaded,
  4. a place for your build and upload steps,
  5. mark: records that the target shipped.

For Docker targets init writes working docker/build-push-action steps. For Android, iOS, web and custom targets (without npm publishing) it writes commented examples, plus a step named Build steps missing () that always fails with No build steps for <target> yet. Uncomment and adapt the examples, then delete the “Build steps missing” step of that target. More examples are in Workflow recipes.

Releases use a GitHub App token, not the default GITHUB_TOKEN. Events caused by GITHUB_TOKEN don’t start other workflows, so a release PR opened with it would never get CI. Follow GitHub App setup and add the variable LAUNCHSET_APP_CLIENT_ID and the secret LAUNCHSET_APP_PRIVATE_KEY. If your org set up launchset before, with the secret LAUNCHSET_APP_ID, there is nothing to add: the workflows fall back to it.

Terminal window
git checkout -b add-launchset
git add -A
git commit -m "Add launchset"
git push -u origin add-launchset

Open the PR. The check runs and reports that the PR has no changeset. That is on purpose. Add one:

Terminal window
npx launchset add --bump patch --message "Set up releases with launchset"

Or, for a change that needs no release, npx launchset add --empty. Commit the file in .launchset/ and push. The check turns green.

  1. Merge the PR. The release workflow runs on the push to main. It sees a pending changeset and opens a PR titled Release v1.4.1 (the version depends on your changesets). The branch is launchset/release/main.
  2. Review the release PR. It shows the changelog section that will be added.
  3. Merge it. The release workflow runs again. This time it sees that the version changed, so it builds every target at the release commit, marks each one, and creates the tag v1.4.1 and a GitHub Release.

From now on, every PR adds a changeset, and merging the release PR is the release. Read Concepts for the whole picture and Writing changesets for the details of the file.

The workflows use other actions too (actions/checkout, actions/create-github-app-token, docker/build-push-action and so on), each pinned to a major version tag such as @v7. init writes the latest majors at the time of the launchset release you run. It writes each workflow file once: it never overwrites an existing file unless you answer overwrite for it, and no other launchset command touches your workflows. So the pins age with your repo, and a newer launchset doesn’t update them.

Let Dependabot propose the new majors. Add .github/dependabot.yml (or add the github-actions entry to the one you have):

.github/dependabot.yml
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly

Read the release notes before you merge a new major: inputs get renamed now and then (for example app-id → client-id in actions/create-github-app-token@v3). Renovate works too. init doesn’t write this file for you, because it is repo-wide configuration that also covers workflows that aren’t launchset’s. It suggests it in its summary when the repo has no Dependabot or Renovate configuration.

Terminal window
npx launchset status
Branch: main
Version: 1.4.0
Last release: v1.4.0
Next version: 1.5.0 (minor)
Pending changesets (1):
minor Add offline mode .launchset/sweet-boxes-draw.md
Version files: consistent

launchset version --dry-run prints the diff the release PR would contain.