Skip to content

ui: publish llama-ui on npm as an alias of @ggml-org/llama-ui - #32667

Merged
allozaur merged 1 commit into
ggml-org:masterfrom
allozaur:allozaur/ci/ui-publish-unscoped-llama-ui
Nov 20, 2026
Merged

allozaur merged 1 commit into
ggml-org:masterfrom
allozaur:allozaur/ci/ui-publish-unscoped-llama-ui

Conversation

@allozaur

@allozaur allozaur commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Overview

npm install llama-ui now gets the same library as @ggml-org/llama-ui: the unscoped name is published as an alias at the same version on every release.

Additional information

Needs one step on npm before it can publish: llama-ui is a separate package and has to name this workflow as its trusted publisher (Publishing settings, Trusted Publisher, GitHub Actions, organization ggml-org, repository llama.cpp, workflow file ui-lib-publish.yml, Environment blank). Until then the alias step fails on master while the scoped release still goes out; re-running the job afterwards publishes it.

Cause

llama-ui on npm holds a single 0.0.1, an empty placeholder published in August to reserve the name. The library has since been released as @ggml-org/llama-ui (0.5.0 now), and nothing publishes to the unscoped name.

What changed
  • ui-lib-publish.yml gains three steps after the scoped publish: rename the build, compare llama-ui with npm, publish it. They are skipped on pull requests, and publish only from master, as the scoped step does.
  • ui/lib/ui/scripts/alias-package.mjs does the rename: it sets name to llama-ui in package.json and puts a note at the top of the readme saying the package is an alias and which one to prefer. Nothing else differs, so the two tarballs hold the same dist.
  • The alias has its own verdict from npm-version-check.mjs, not the scoped package's. If it falls behind (as now, at 0.0.1), the next run on master brings it level without waiting for a version bump. The first run after merge publishes [email protected].
  • The run summary reports the alias in a second table.

It is the same build under a second name, not a wrapper that depends on the scoped package: the library's entry points are Svelte sources and CSS files resolved through exports, which a re-exporting package would have to mirror one by one.

Testing

Locally, on the built library: the script renames the package and is a no-op when run twice; npm-version-check.mjs then reports [email protected] as new against 0.0.1 with dist-tag latest; npm pack --dry-run --ignore-scripts produces llama-ui-0.5.0.tgz with the same 394 files. The workflow itself has not run: its publish steps only run on master in this repository.

Requirements

The unscoped llama-ui on npm is a 0.0.1 placeholder. After the scoped
publish, the workflow renames the same build and publishes it again at
the same version, with a readme note pointing at the scoped package.

Assisted-by: Claude (Opus 5.5 Medium)
@github-actions github-actions Bot added devops improvements to build systems and github actions server/ui labels Nov 20, 2026
@allozaur
allozaur marked this pull request as ready for review November 20, 2026 14:43
@allozaur
allozaur requested review from a team as code owners November 20, 2026 14:43
@allozaur
allozaur merged commit cf4153a into ggml-org:master Nov 20, 2026
10 checks passed
Kidplayer666 pushed a commit to Kidplayer666/llama.cpp that referenced this pull request Nov 20, 2026
The unscoped llama-ui on npm is a 0.0.1 placeholder. After the scoped
publish, the workflow renames the same build and publishes it again at
the same version, with a readme note pointing at the scoped package.

Assisted-by: Claude (Opus 5.5 Medium)
Annieren pushed a commit to Annieren/llama.cpp-upstream that referenced this pull request Nov 23, 2026
The unscoped llama-ui on npm is a 0.0.1 placeholder. After the scoped
publish, the workflow renames the same build and publishes it again at
the same version, with a readme note pointing at the scoped package.

Assisted-by: Claude (Opus 5.5 Medium)
Nindaleth pushed a commit to Nindaleth/llama.cpp that referenced this pull request Nov 26, 2026
The unscoped llama-ui on npm is a 0.0.1 placeholder. After the scoped
publish, the workflow renames the same build and publishes it again at
the same version, with a readme note pointing at the scoped package.

Assisted-by: Claude (Opus 5.5 Medium)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions server/ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants