From 9c0b413fd1fd6f99ed1d9b3be349e62f826abf7f Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Mon, 14 Jul 2025 09:41:11 -0700 Subject: [PATCH] docs: clarify the build process for the npm release (#1568) It appears that `0.5.0` was built with `stage_release.sh` instead of `stage_rust_release.py`, so add docs to clarify this and recommend running `--version` on the release candidate to verify the right thing was built. --- codex-cli/scripts/README.md | 9 +++++++++ codex-cli/scripts/stage_release.sh | 8 +++----- 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 codex-cli/scripts/README.md diff --git a/codex-cli/scripts/README.md b/codex-cli/scripts/README.md new file mode 100644 index 00000000..21e4f3e8 --- /dev/null +++ b/codex-cli/scripts/README.md @@ -0,0 +1,9 @@ +# npm releases + +Run the following: + +To build the 0.2.x or later version of the npm module, which runs the Rust version of the CLI, build it as follows: + +```bash +./codex-cli/scripts/stage_rust_release.py --release-version 0.6.0 +``` diff --git a/codex-cli/scripts/stage_release.sh b/codex-cli/scripts/stage_release.sh index 29b9f767..cd32ade6 100755 --- a/codex-cli/scripts/stage_release.sh +++ b/codex-cli/scripts/stage_release.sh @@ -4,10 +4,7 @@ # ----------------------------------------------------------------------------- # Stages an npm release for @openai/codex. # -# The script used to accept a single optional positional argument that indicated -# the temporary directory in which to stage the package. We now support a -# flag-based interface so that we can extend the command with further options -# without breaking the call-site contract. +# Usage: # # --tmp : Use instead of a freshly created temp directory. # --native : Bundle the pre-built Rust CLI binaries for Linux alongside @@ -141,7 +138,8 @@ popd >/dev/null echo "Staged version $VERSION for release in $TMPDIR" if [[ "$INCLUDE_NATIVE" -eq 1 ]]; then - echo "Test Rust:" + echo "Verify the CLI:" + echo " node ${TMPDIR}/bin/codex.js --version" echo " node ${TMPDIR}/bin/codex.js --help" else echo "Test Node:"