Thanks for helping improve codex-auth. Keep changes small, tested, and easy to review.
Requirements:
- Go 1.24 or newer.
- Node.js 22 or newer for npm packaging tests.
make.
Build and test locally:
make build
make test
make checkUse --codex-home <path> or CODEX_HOME when testing account behavior so local Codex credentials are not affected.
- Open an issue or describe the change before large behavior changes.
- Keep pull requests focused on one feature, fix, or documentation update.
- Preserve existing CLI command names, output formats, and storage paths unless the change intentionally updates them.
- Add or update tests when account storage, command behavior, release automation, or npm packaging changes.
- Update
README.mdandCHANGELOG.mdfor user-facing changes.
- Run
make testfor Go or npm launcher changes. - Run
make buildfor CLI behavior changes. - Run
make checkwhen changes touch shared behavior, release automation, or both Go and npm packaging. - Documentation-only changes should at least pass
git diff --check.
Use the Makefile target so all npm package versions stay aligned:
make version VERSION=0.2.1This updates the root npm package, platform package versions, and root optional dependency pins. Release tags still use the v*.*.* format, such as v0.2.1.
Before creating a release tag:
- Run
make version VERSION=<version>. - Move user-facing changes from
Unreleasedinto a datedCHANGELOG.mdsection. - Run
make check. - Commit the release preparation changes.
- Tag and push with
git tag v<version>andgit push origin main v<version>.
Tagged releases publish GitHub binaries, npm packages, and the Homebrew tap formula through GitHub Actions.