mirror of
https://github.com/openai/codex.git
synced 2026-04-29 02:41:12 +03:00
29 lines
1.1 KiB
Markdown
29 lines
1.1 KiB
Markdown
# npm releases
|
|
|
|
Use the staging helper in the repo root to generate npm tarballs for a release. For
|
|
example, to stage the CLI, responses proxy, and SDK packages for version `0.6.0`:
|
|
|
|
```bash
|
|
./scripts/stage_npm_packages.py \
|
|
--release-version 0.6.0 \
|
|
--package codex \
|
|
--package codex-responses-api-proxy \
|
|
--package codex-sdk
|
|
```
|
|
|
|
This downloads the native artifacts once, hydrates `vendor/` for each package, and writes
|
|
tarballs to `dist/npm/`.
|
|
|
|
When `--package codex` is provided, the staging helper builds the lightweight
|
|
`@openai/codex` meta package plus all platform-native `@openai/codex` variants
|
|
that are later published under platform-specific dist-tags.
|
|
|
|
When `--package codex-sdk` is provided, the staging helper now follows the same
|
|
pattern: it builds a lightweight `@openai/codex-sdk` meta package plus
|
|
platform-native `@openai/codex-sdk` variants published under platform-specific
|
|
dist-tags.
|
|
|
|
If you need to invoke `build_npm_package.py` directly, run
|
|
`codex-cli/scripts/install_native_deps.py` first and pass `--vendor-src` pointing to the
|
|
directory that contains the populated `vendor/` tree.
|