build: wait for npm to serve a released version
npm answers with a placeholder version (0.0.0-stage) for about four minutes after `npm publish`. The first release ended the script in that window: a fresh install got the placeholder and loaded no extension, and the pi.dev/packages gallery returned 404. Poll the registry until the released version resolves, for at most ten minutes, so the script's exit means `pi install` works. Observed with pi-nous-portal 0.1.0, which became installable at 15:19:25 UTC and listed 8 models from a fresh agent dir.
This commit is contained in:
1 parent
e534b27f94
commit
21ec8029c5
4 files changed
+18
-2
No files matched your search
@@ -61,6 +61,10 @@ Verified before stopping: `npm run check` (25 tests pass), `shellcheck`, `npm pa
|
||||
- [ ] Confirm the package shows up on https://pi.dev/packages.
|
||||
- [ ] Close #3 once the listing is live.
|
||||
|
||||
## Update, 2026-11-25 15:26 UTC
|
||||
|
||||
Published. `./publish.sh` ran with the 2FA prompt, pushed `release v0.1.0` (e534b27) and tag `v0.1.0`. npm answered with a placeholder version `0.0.0-stage` for about four minutes ("Your package is being processed and may take a few minutes to become available"). A fresh-agent-dir install in that window listed no Nous models. At 15:19:25 UTC `latest` became `0.1.0`, and `pi -e npm:pi-nous-portal@0.1.0 --list-models` in a fresh agent dir listed 8 `nous-portal` models with an empty stderr. `publish.sh` now waits until the registry serves the version. The pi.dev/packages gallery still returned 404 at 15:26 UTC, so issue #3 stays open until the listing is live.
|
||||
|
||||
---
|
||||
|
||||
*Log written by write-log skill*
|
||||
Reference in new issue
Block a user