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
@@ -73,7 +73,7 @@ Typechecking needs a local pi install. The `paths` in `tsconfig.json` point `@ea
|
||||
./publish.sh patch # bump first; minor and major work too
|
||||
```
|
||||
|
||||
The script runs the checks, shows the tarball contents, moves the `Unreleased` section of the changelog under the new version, commits, tags, publishes to npm, and pushes. npm asks for your 2FA code during the publish. You need `npm login` with publish rights to the package first.
|
||||
The script runs the checks, shows the tarball contents, moves the `Unreleased` section of the changelog under the new version, commits, tags, publishes to npm, and pushes. npm asks for your 2FA code during the publish. npm then takes a few minutes to serve the new version, and the script waits until it resolves. You need `npm login` with publish rights to the package first.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in new issue
Block a user