Skip to main content

Releasing

This guide is for maintainers preparing a luma.gl release. Releases are published from an eligible branch by the GitHub Actions release workflow. A pushed version tag starts the workflow; after its tests and build pass, it checks the changelog, creates the GitHub release, and publishes packages to npm.

For an ordinary release:

  1. Choose an eligible branch and release version.
  2. Write and commit the matching changelog entry.
  3. Version the packages, review the changes, and run the checks.
  4. Commit and tag the release, then push the branch and tag.
  5. Monitor the workflow and verify every public package on npm.

The examples below use v10.0.0-alpha.7 to illustrate the commands. Substitute the version and branch for the release you are preparing. Alpha releases use the beta npm dist-tag; check the expected dist-tag for other release types before publishing.

Existing packages use npm trusted publishing in the release workflow, so routine releases do not require a local npm login or a publishing token. A new package name needs the one-time setup described below. Determine the current public package set from modules/*/package.json and each package’s private flag.

1. Choose the release source​

Publish only from master or a release branch whose name ends in -release, such as 9.4-release. The workflow checks that the tagged commit is contained in one of those remote branches. Use the appropriate release branch for patch releases and master for a new major or minor release unless the release plan says otherwise.

Use a clean checkout of the release branch. If the development checkout contains unrelated changes, use a separate clean checkout rather than stashing, committing, or publishing those changes. Do not publish from a feature branch or a detached commit outside the permitted release branches.

2. Prepare the changelog and version​

Check lerna.json, remote Git tags, and npm before choosing a version:

git ls-remote origin refs/heads/master 'refs/tags/v10.0.0-alpha.*'
npm view @luma.gl/core dist-tags --json

If the intended version already has a failed or partial release, follow recovery below instead of incrementing merely to escape the failure. Alpha packages use npm's beta dist-tag. Preserve the existing latest tags for prereleases.

Add a user-visible release entry to CHANGELOG.md. Its heading must exactly match the intended tag, for example ### v10.0.0-alpha.7. Stage and commit the changelog on the release branch before invoking version tooling. The workflow verifies the exact heading before publication.

The following controlled sequence allows version references to be checked before anything is pushed. Replace the example versions throughout this guide with the intended release versions.

nvm use
yarn install
git add CHANGELOG.md
git commit -m 'docs: prepare v10.0.0-alpha.7 release notes'
npx lerna version 10.0.0-alpha.7 --force-publish --exact --no-commit-hooks --no-git-tag-version --no-push --yes

Review the resulting manifests. Lerna has left old references in the website workspace and in anari and graph peer dependencies during previous releases. Find remaining references to the previous luma.gl version and align dependencies that should follow this release:

rg '10\.0\.0-alpha\.6' --glob package.json --glob '!node_modules/**'

Review compatibility ranges deliberately; do not replace unrelated dependency versions. Run yarn install again after correcting manifests so the lockfile agrees with them.

yarn publish-beta and yarn publish-prod remain convenience alternatives: they version, commit, tag, and immediately push. Use them only when no intermediate manifest corrections are needed. Do not run them after the controlled versioning sequence, which would bump the version again.

3. Validate and tag the release​

After the final manifest and formatting changes, run:

yarn install
yarn lint fix
yarn build
yarn test

A successful yarn build does not exercise every prepublishOnly hook. Before pushing, also check every public package's repository metadata and run its actual prepublish hook:

node --input-type=module <<'JS'
import assert from 'node:assert/strict';
import {execFileSync} from 'node:child_process';
import {existsSync, readdirSync, readFileSync} from 'node:fs';
import {join} from 'node:path';

for (const directory of readdirSync('modules')) {
const packageDirectory = join('modules', directory);
const manifestPath = join(packageDirectory, 'package.json');
if (!existsSync(manifestPath)) continue;
const packageInfo = JSON.parse(readFileSync(manifestPath, 'utf8'));
if (packageInfo.private) continue;
assert.equal(packageInfo.repository?.url, 'https://github.com/visgl/luma.gl', packageInfo.name);
console.log(packageInfo.name);
if (packageInfo.scripts?.prepublishOnly) {
execFileSync('npm', ['run', 'prepublishOnly'], {cwd: packageDirectory, stdio: 'inherit'});
}
}
JS

The repository URL must match the repository identified by the workflow's provenance. A missing repository.url caused npm to reject @luma.gl/three with E422 even though build and tests passed. Bundle hooks also catch workspace alias problems that TypeScript builds can miss.

A local VITEST_BROWSER_CONNECTION_CLOSED is a failed infrastructure run, not a passing test run. Record it and investigate; require the full Linux test gates on the same release source to pass before publication. Do not skip assertions or weaken release gates to work around a browser crash.

Immediately before pushing, fetch the release branch and check that its remote head has not advanced. Incorporate new source changes and repeat the relevant checks if necessary. In the clean release checkout, review the diff, commit the version changes, and push only the intended tag:

git diff --stat
git diff
git add --all
git commit -m 'v10.0.0-alpha.7'
git tag -a v10.0.0-alpha.7 -m v10.0.0-alpha.7
git push origin master
git push origin refs/tags/v10.0.0-alpha.7

Substitute the release branch for master when appropriate. The workflow runs Node tests and six headless release-suite shards. After those pass, it builds packages, checks the changelog, creates the GitHub release, and publishes through OIDC. Monitor the whole workflow through completion.

The release suite uses LUMA_TEST_BROWSER_GROUP=release. It keeps rendering, data processing, and ordinary physics correctness checks, while application-scale domino and endurance qualification stays in physics CI. Their assertions and thresholds are unchanged. Default local tests and PR physics coverage still exercise the domino scenario; the full endurance matrix also runs through the scheduled/manual physics workflow. The qualification list lives in test/utils/browser-test-groups.ts.

4. Verify the published release​

For every public package, verify the exact version, expected dist-tag, and provenance:

npm view @luma.gl/core@10.0.0-alpha.7 version dist.attestations --json --prefer-online
npm view @luma.gl/core dist-tags --json --prefer-online

Repeat for the package set printed by the preflight above. Confirm beta points to the new alpha, latest remains unchanged, the GitHub release is a prerelease, and each OIDC publication has a provenance attestation. Initial authenticated bootstrap versions may lack OIDC provenance; the subsequent workflow-published version must have it.

Capture every public package's dist-tags before publishing so verification can compare all previous non-beta tags, including latest, rather than just the new beta value.

Registry metadata can lag a successful publish, including returning E404 or the previous beta tag. During alpha.9, ordinary npm queries initially returned 404 after the workflow succeeded; packages appeared at different times, and all seven were verified several minutes later. Allow at least five minutes for propagation and recheck each package independently. This is a diagnostic interval, not a guarantee that registry caches have refreshed.

Retain the successful publish log. Fresh cache-busted registry metadata can help diagnose stale responses, but finish with ordinary npm view --prefer-online verification of exact versions, dist-tags, and provenance. Do not republish or move the tag just because an early query returns 404. A green workflow alone is not proof that every version is publicly installable.

New package names: one-time setup​

Bootstrap before the target release​

Merge the public-package change, declare its repository URL, and pass build, tests, and prepublish checks on master or a permitted release branch. Use the real built package for one authenticated initial publication so that its npm settings can be configured.

Do this before bumping to the target release version. For example, bootstrap a new package at the current alpha.6 version, configure its publisher, then let the next alpha.7 workflow publish it through OIDC. If it is manually published at the target version, from-package skips that version and the new trust connection will still need a later OIDC publication to validate.

From the checked source, replace modules/new-module with the new package's directory:

npm login
npx --yes npm@^11.15.0 publish ./modules/new-module --access public --tag beta --auth-type=web

Complete any browser authentication or authenticator-code prompts directly with npm. Terminal login and browser settings authentication are separate; npm may request another code for each settings change. Never add a maintainer token to the release workflow for this bootstrap.

Configure and validate the publisher​

In the new package's npm Settings, create a GitHub Actions trusted publisher:

SettingValue
Organization or uservisgl
Repositoryluma.gl
Workflow filenamerelease.yml
Environment nameLeave empty; the release job does not use a GitHub environment
Allowed actionsEnable direct publishing (npm publish)

Use the filename alone, not .github/workflows/release.yml. A stage-only connection does not match this repository's immediate publishing flow. Inspect an existing connection before making changes; do not recreate an already valid publisher for each release.

A maintainer with npm 2FA can also inspect and configure a connection through the CLI:

npx --yes npm@^11.15.0 trust list @luma.gl/new-module
npx --yes npm@^11.15.0 trust github @luma.gl/new-module --repo visgl/luma.gl --file release.yml --allow-publish

These commands manage npm account settings and may require 2FA, including for inspection. After the workflow publishes a new version, check that npm Settings shows Valid, rather than Pending validation, and verify its registry provenance.

A new connection must complete its first successful publication within two days or it expires. Plan the bootstrap and next OIDC publication together; saving the connection is not the final step. See npm's configuration expiry documentation and the npm trust reference.

Recover from a failed publication​

Keep the same version while completing a failed or partial release. First inspect the failed job and query npm for every public package to establish which versions actually reached the registry. Do not unpublish or attempt to overwrite successful versions.

Allow automatic publishing recovery to finish​

The current @vis.gl/dev-tools publisher makes up to three publishing attempts with a 120-second delay between attempts. The release workflow invokes this publisher directly; inspect the installed publisher and logs if its behavior changes after a dev-tools upgrade.

Alpha.9 encountered TLOG_CREATE_ENTRY_ERROR / HTTP 409 because equivalent provenance entries already existed in the transparency log. The built-in second attempt recovered: it skipped the already published graph package and published the remaining six packages. The successful log therefore listed six newly published packages while the complete release contained seven. Verify the full public package set, including packages skipped on a retry.

While the publisher is still running its bounded retries, monitor it rather than starting a competing job or deleting the GitHub release. Keep OIDC and provenance enabled. A transparency error in an earlier attempt does not establish that the final publication failed.

Retry unchanged source after automatic recovery is exhausted​

Only after the job has failed and registry state has been inspected, use manual recovery. For a transient publishing failure, retain successful test jobs and rerun only the publishing job. If the workflow already created its GitHub release, delete that incomplete release entry first; this does not delete the Git tag or npm packages. The current publisher creates the GitHub release before npm publication, so leaving the entry in place prevents a clean retry.

Replace VERSION, RUN_ID, and JOB_ID below with values from the failed release. The API query returns the publishing job's numeric ID.

gh release delete vVERSION --repo visgl/luma.gl --yes
gh api repos/visgl/luma.gl/actions/runs/RUN_ID/jobs --jq '.jobs[] | {id, name, conclusion}'
gh run rerun RUN_ID --repo visgl/luma.gl --job JOB_ID

Delete the GitHub release only if it exists. The from-package publisher skips versions already on npm. After a retry, repeat the complete registry verification, including dist-tags and provenance. Use bounded retries for transient failures, not an endless rerun loop.

Correct the release source​

Put source or workflow fixes through a PR and merge them with the required reviews and checks. Do not assume a release request authorizes bypassing branch protections. From a clean permitted release branch at the corrected, validated commit, move the existing tag with a lease:

releaseTag=v10.0.0-alpha.7
previousTagObject=$(git ls-remote origin "refs/tags/$releaseTag" | cut -f1)
git tag -f -a "$releaseTag" -m "$releaseTag" HEAD
git push origin "refs/tags/$releaseTag" "--force-with-lease=refs/tags/$releaseTag:$previousTagObject"

Remove an incomplete GitHub release entry before pushing the tag. A moved tag triggers a fresh workflow; do not rerun an old job expecting it to check out the corrected commit. The commit must remain contained in remote master or a *-release branch, with the exact changelog heading.

Already published packages remain immutable and keep their original provenance. If a published package itself requires a code fix, release a new version rather than trying to replace it. Do not claim skipped packages were rebuilt from a later recovery commit.

Known failure signatures​

FailureAction
npm E422 says repository.url does not match provenanceCorrect the package manifest to identify https://github.com/visgl/luma.gl, verify the packed manifest, and merge before retrying.
A prepublish bundle cannot resolve an internal workspace pathCheck the bundle alias against the package export map. Run actual prepublish hooks; a TypeScript build alone does not cover this.
TLOG_CREATE_ENTRY_ERROR / HTTP 409 says an equivalent transparency-log entry existsLet the built-in bounded retry finish; inspect the final job result and registry. Retry the publisher manually only if automatic recovery is exhausted. Keep OIDC and provenance enabled.
ERR_INVALID_ARG_TYPE says the timeout is a stringRemove npm_config_timeout. Lerna forwards that untyped environment value as a string, while its HTTP client requires a number. Do not use this variable as a Sigstore workaround. Test any future override through the actual HTTP client, not just a configuration snapshot.
A newly published version returns E404 or an old dist-tagAllow registry propagation, compare with publish logs, and recheck exact versions and tags before retrying.