You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: CI was pulling the entire stagehand repo and re-creating the node sea binary. Now it just pulls the binary.
docs: Added docs
* lint fix
* Use release id instead of release tag
| python -c 'import json,sys; d=json.load(sys.stdin); a=next((x for x in d.get("assets",[]) if x.get("name")==sys.argv[1]), None); print(a.get("url","") if a else "")' \
98
+
"${ASSET_NAME}"
99
+
)"
100
+
101
+
if [ -z "${url}" ]; then
102
+
echo "Release asset not found: ${ASSET_NAME} (tag=${RELEASE_TAG})" >&2
This repo publishes the `stagehand` Python package to PyPI when a **GitHub Release** is published. The release is currently initiated manually via the `release-please` CLI.
4
+
5
+
## Chronological flow (step-by-step)
6
+
7
+
1. Run `pnpx release-please release-pr` (local machine).
8
+
- Opens/updates a Release PR to `main` with version + `CHANGELOG.md` updates.
9
+
2. Merge the Release PR into `main`.
10
+
3. Run `pnpx release-please github-release` (local machine).
11
+
- Publishes the GitHub Release + git tag.
12
+
4. Wait for GitHub Actions to publish to PyPI (automatic).
- Builds platform wheels that embed the Stagehand server binary (downloaded from the latest `stagehand-server/v*` GitHub Release in `browserbase/stagehand`), then publishes to PyPI.
15
+
16
+
## Important implementation notes
17
+
18
+
-**Server binary bundling into wheels**
19
+
-`.github/workflows/publish-pypi.yml` downloads the prebuilt Stagehand server SEA binary from the latest `stagehand-server/v*` GitHub Release in `browserbase/stagehand`, then places it into `src/stagehand/_sea/*` before running `uv build --wheel`.
20
+
-**Stagehand server version selection (current behavior)**
21
+
-`publish-pypi.yml` resolves the latest GitHub Release tag matching `stagehand-server/v*` from `browserbase/stagehand` and downloads the matching `stagehand-server-<platform>` release asset for each wheel build.
0 commit comments