ui: llama-chat publish drops the registry check, bin paths without ./ (#32543)

* ui: llama-chat publish waits for the registry, bin paths without ./

The first publish of @ggml-org/llama-chat took about four minutes to show
up on the registry, so the 60 seconds the check after publishing waited
failed a release that had gone through. It now waits up to ten minutes.

npm normalizes "./bin/cli.js" to "bin/cli.js" on publish and warns that
the bin was "invalid and removed", which reads as if the command was
dropped. Both package.json files now give the paths as npm writes them.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: drop the registry check after llama-chat publishes

npm publish already fails when the registry refuses a package, and the
check after it only failed a release that had gone through, while npm
was still processing it. Nothing waits on the registry any more.

Assisted-by: Claude (Opus 5.5 Medium)
This commit is contained in:
Aleksander Grygier authored and GitHub committed 2026-11-18 15:29:54 +01:00
1 parent b069e526de
commit a693a5f66f
4 files changed
+3 -22

No files matched your search

-19
View File
@@ -145,25 +145,6 @@ jobs:
run: npm publish --access public --provenance --ignore-scripts --tag "$TAG"
working-directory: ${{ env.ALIAS_DIR }}
- name: Verify they landed
if: github.ref == 'refs/heads/master' && (steps.app.outputs.should_publish == 'true' || steps.alias.outputs.should_publish == 'true') && inputs.dry_run != true
env:
VERSION: ${{ steps.app.outputs.version }}
run: |
# the registry can serve a new version some time after publish returns
for name in @ggml-org/llama-chat llama-chat; do
for try in 1 2 3 4 5 6; do
if [ "$(npm view "$name@$VERSION" version 2>/dev/null || true)" = "$VERSION" ]; then
echo "$name@$VERSION is on npm"
continue 2
fi
echo "$name@$VERSION not visible yet (attempt $try of 6)"
sleep 10
done
echo "::error::$name@$VERSION published without error but is not visible on the registry. Check npm before publishing again."
exit 1
done
- name: Report
if: always()
# values reach the shell through env, so a name from a PR's package.json cannot inject here