This document describes the release process for zai-codex-bridge.
- Patch releases only (0.4.0 → 0.4.1 → 0.4.2, etc.)
- No minor or major bumps without explicit discussion
- Always increment by +0.0.1 from current version
# Set your API key
export ZAI_API_KEY="sk-your-key"
# Run test suite
npm run test:curl
# or
npm test# Use the release script (recommended)
npm run release:patch
# Or manually edit package.json and change:
# "version": "0.4.0" -> "version": "0.4.1"Add an entry for the new version following Keep a Changelog format.
git add package.json CHANGELOG.md
git commit -m "chore: release v0.4.1"git tag v0.4.1git push
git push --tagsnpm publishThe npm run release:patch script:
- Verifies current version is 0.4.x
- Bumps patch version by +0.0.1
- Refuses to bump minor/major versions
- Updates package.json in-place
Example:
$ npm run release:patch
Current version: 0.4.0
Bumping to: 0.4.1
Updated package.json