Targets
A target is one thing that is built and shipped with every release. You list them under targets in launchset.config.ts. The key is the name (lowercase letters, digits and dashes). Each target becomes one job in the build matrix.
export default defineConfig({ targets: { "docker-api": { type: "docker", image: "ghcr.io/acme/api" }, web: { type: "web" }, android: { type: "android", source: { kind: "gradle", file: "apps/mobile/android/app/build.gradle" }, }, ios: { type: "ios", source: { kind: "xcodeproj", file: "apps/mobile/ios/App.xcodeproj" }, release: "manual", }, },});| Type | For | Page |
|---|---|---|
docker |
A container image. launchset renders the tags and labels. | Docker |
web |
A web app. Nothing stamped by default. | Web |
android |
An Android app. Stamps versionName and versionCode. |
Android |
ios |
An iOS app. Stamps the marketing version and build number. | iOS |
custom |
Anything else: an npm package, a Helm chart, a version file. | Custom |
React Native, Capacitor, Expo and Flutter apps use the android and ios types with the right source:
- React Native:
gradleandxcodeproj. - Capacitor:
kind: "capacitor". - Expo (experimental):
kind: "expo", or environment variables forapp.config.js. - Flutter (experimental):
kind: "flutter", which stampspubspec.yaml.
How stamping works
Section titled “How stamping works”There are two kinds of stamping.
| What | Written by | Committed? |
|---|---|---|
Marketing version (versionName, CFBundleShortVersionString, expo.version, the pubspec.yaml version, …) |
The release PR. In CI also by stamp, so previews carry their own version. |
In the release PR, yes. In CI, no. |
Build number (versionCode, CFBundleVersion, the +N in pubspec.yaml, …) |
launchset stamp, in CI only. |
Never. |
The build numbers in your repo are placeholders. launchset doesn’t care what they are.
Edits keep your files intact
Section titled “Edits keep your files intact”launchset reads a file only to find where the value is. It then replaces just those characters. Indentation, quotes, comments and line endings stay as they are. It never re-formats a JSON file, re-orders a plist or rewrites a project.pbxproj. The diff of a release PR contains the version values and nothing else.
When a value can’t be found unambiguously, launchset fails and names the file and the reason. It never guesses.
The version check
Section titled “The version check”launchset status and the PR check verify that every target’s committed marketing version equals the root version. If someone edits a version file by hand, the check fails and lists the files and values.
Auto and manual targets
Section titled “Auto and manual targets”Every target has release: "auto" (default) or "manual". Auto targets are built by every release. Manual targets still get their version stamped, but are shipped on demand. See Manual targets.
Extra files
Section titled “Extra files”Any target can list extra files that get the version stamped. See Custom targets for the kinds.