Skip to content
Docs

GitHub Action reference

The action is public: any repo in any org can use it. GitLab has no action: CI jobs run the CLI, see launchset on GitLab.

- uses: demonsters/launchset-action@v1
with:
command: stamp
target: ${{ matrix.target }}
plan: ${{ needs.launchset.outputs.plan }}

launchset init writes the workflows that call it. Tags: v1 is the moving major tag, and v1.2.3 pins a release. The action runs on node24 and needs git on the runner. Check out with fetch-depth: 0 for check, release, finalize and the preview commands.

Every command writes a readable summary to the job summary.

command What it does Token
check The PR check and its sticky comment. The default GITHUB_TOKEN is enough.
release Decides the mode (publish, ship, release-pr, none). In release-pr mode it rebuilds the release branch and opens or updates the PR. A GitHub App token.
stamp Writes version and build number into a target’s files in the checkout. Needs target and plan. Exports LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER and LAUNCHSET_CHANNEL to later steps. None.
verify Checks the store, registry or npm for this version and build number. Needs target and plan. None (credentials come from environment variables).
mark Creates the marker tag. Needs target and plan. A GitHub App token.
finalize Creates the release tag and the GitHub Release when every auto target has a marker on the release commit. Supersedes unfinished versions. Opens the changelog backport PR after a maintenance release. Needs plan. A GitHub App token.
preview-plan Plans a preview or prerelease. On prerelease branches it reserves the tag. target may list targets (comma-separated). A GitHub App token.
preview-comment The sticky PR comment, and the GitHub pre-release on prerelease branches. Needs plan. A GitHub App token. Also set GITHUB_TOKEN in env to the default token so it can list the run’s jobs.
add Writes a changeset: bump and message. Outputs path. Doesn’t commit. None.
Input What it does Default
command What to run. One of: check (PR check and sticky comment), release (decide the release mode: publish, ship, release-pr or none), stamp (write version and build number into a target’s files), verify (store, registry or npm check before uploading), mark (record that a target shipped), finalize (create the release tag and GitHub Release when every auto target has shipped), preview-plan (plan a preview or prerelease build), preview-comment (sticky PR comment and prerelease GitHub Release), add (write a changeset from a workflow). required
token GitHub token. For check, the default (github.token) is enough: it only reads and comments. For release, mark, finalize, preview-plan and preview-comment pass a GitHub App installation token (actions/create-github-app-token), because events caused by GITHUB_TOKEN do not trigger other workflows. ${{ github.token }}
target Target name. Required for stamp, verify and mark. With release: the manual target to ship (shipping it for an already released version). With preview-plan: an optional comma-separated list of targets that overrides the configured preview targets (used by workflow_dispatch).
bump With add: the bump type of the new changeset (major, minor, patch or none).
message With add: the changeset summary (the changelog entry).
version With release and target: the already released version to ship (default: the latest release on the branch the workflow was started from).
plan The plan JSON from the release or preview-plan job (its plan output). stamp, verify, mark, finalize and preview-comment read it and never recompute the version or build number.
working-directory Directory of the repository root to run in (where launchset.config.* lives). .

Which outputs a command sets is in the description. Outputs that don’t apply are empty or not set.

Output What it does
mode Set by release. publish (build and ship the release), ship (build one manual target), release-pr (the release PR was created or updated) or none (nothing to do).
matrix Set by release and preview-plan. JSON array of target names to build, for fromJSON() in a build matrix. Manual targets are only in it in ship mode.
plan Set by release and preview-plan. The plan as JSON (version, build number, channel, release sha and per-target data). Pass it to the later commands as the plan input.
version Set by release, preview-plan, stamp and verify. The version of this run: the release version, the preview version or the prerelease version.
build-number Set by release, preview-plan and stamp. The build number of this run. Empty with the eas strategy.
channel Set by release, preview-plan and stamp. release, prerelease or preview. Use it to pick the store track, TestFlight group or npm tag.
release-sha Set by release and preview-plan. The commit every build job must check out (the release commit, or the commit that was built for a preview).
already-published Set by verify. “true” when this exact version and build number is already in the store, registry or npm. The workflow skips the build and upload steps and goes straight to mark.
docker-tags Set by stamp for docker targets. Full image references (image:tag), one per line. Pass it to docker/build-push-action as tags.
docker-labels Set by stamp for docker targets. OCI labels (org.opencontainers.image.version, .revision, .created), one key=value per line. Pass it to docker/build-push-action as labels.
docker-refs-json Set by stamp for docker targets. The same references as docker-tags, as a JSON array of strings, for steps that need a structured list (for example scanners or deploy jobs).
dist-tag Set by release, preview-plan and stamp. Suggested npm dist-tag: latest for base-branch releases, release-. on maintenance branches, for prereleases and pr- or for previews.
pr-number Set by check, and by preview-plan on pull_request runs. The number of the pull request, or the release PR number in release-pr mode.
marketing-version Set by stamp. The version written into the target’s marketing-version fields. It is the plain X.Y.Z base version for iOS targets (Apple does not accept prerelease suffixes) and the same as version for every other target.
tag Set by release and preview-plan. The git tag of this version: the release tag in publish and ship mode, or the reserved prerelease tag on prerelease branches. Empty for other previews.
prerelease Set by release, preview-plan and stamp. “true” when the channel is prerelease, otherwise “false”. A convenient condition for steps that publish only prereleases.
path Set by add. The path of the new changeset file, relative to the repository root (for example .launchset/brave-lions-sing.md). Use it to commit the file in a workflow.
skipped Set by preview-plan. A short code (for example no-label or fork) when no preview is planned for this run; empty otherwise. When it is set, matrix is [] and plan is empty.
skip-reason Set by preview-plan. The sentence that says why the preview was skipped.
comment-url Set by preview-comment on pull request previews. The URL of the sticky comment.
release-url Set by preview-comment on prerelease branches. The URL of the GitHub pre-release.

release and preview-plan output plan: JSON with the version, build number, channel, release sha, branch and per-target data (Docker tags and labels, the marker tag). Pass it to the later commands as plan. They read it and never recompute anything. That is why a re-run job has the same version and build number.

{
"schemaVersion": 1,
"mode": "publish",
"channel": "release",
"version": "1.5.0",
"baseVersion": "1.5.0",
"buildNumber": 217175105,
"releaseSha": "75aecd34da2769c6ce5f4bd329e4b1431786c772",
"branch": "main",
"maintenance": false,
"distTag": "latest",
"tag": "v1.5.0",
"matrix": ["api", "android"],
"targets": {
"android": {
"name": "android",
"type": "android",
"release": "auto",
"marketingVersion": "1.5.0",
"buildNumber": 217175105,
"marker": "launchset/android@1.5.0"
}
},
"createdAt": "2026-11-18T14:25:05.235Z"
}

launchset plan prints the same JSON on your machine.

Variable Used by Meaning
LAUNCHSET_PLAY_SERVICE_ACCOUNT_JSON verify Service account key for Google Play. verify accepts it raw or base64-encoded. Store it raw if fastlane supply uses the same secret.
LAUNCHSET_ASC_KEY_ID, LAUNCHSET_ASC_ISSUER_ID, LAUNCHSET_ASC_PRIVATE_KEY verify App Store Connect API key. verify accepts the .p8 raw or base64-encoded. Store it raw if fastlane key_content uses the same secret.
LAUNCHSET_REGISTRY_USERNAME, LAUNCHSET_REGISTRY_PASSWORD, LAUNCHSET_REGISTRY_HOST verify Registry credentials, for one registry (LAUNCHSET_REGISTRY_HOST, default the first image’s registry). The Docker config file is used for other registries.
LAUNCHSET_NPM_TOKEN, NODE_AUTH_TOKEN verify Token for private npm packages (a read-only token is enough). The first wins. npm trusted publishing can’t replace it: its tokens can only publish.
LAUNCHSET_TOKEN, GITHUB_TOKEN CLI GitHub token when --token isn’t given.
LAUNCHSET_PLAN CLI The plan, when --plan isn’t given.
LAUNCHSET_DEBUG CLI Print stack traces.
LAUNCHSET_VERSION, LAUNCHSET_BUILD_NUMBER, LAUNCHSET_CHANNEL Exported by the action’s stamp command to the steps after it The values of the run, for build scripts and app.config.js. The CLI can’t export variables to your shell: launchset stamp --json and launchset ship --json print them as env in the JSON instead.

Secrets in error messages are masked: URL credentials never appear in a verify message.