- Remove sync_version step and post-publish version bump commit
- Version is now injected temporarily into package.json during publish
and restored afterward (same approach as CI workflow)
- Set package.json version to 0.0.0 as inert placeholder
- Add export to .env.example so variables propagate to child processes
- Simplify patch_package_json by removing dead code branches
When users run any ocr command, the Node.js shim spawns a detached
background process that checks GitHub Releases for newer versions and
atomically replaces the binary. This ensures users stay on recent
versions without blocking their current command execution.
- Cooldown: checks at most once per hour (configurable via OCR_UPDATE_INTERVAL)
- Disable: set OCR_NO_UPDATE=1 to skip entirely
- Safety: PID lock prevents concurrent updates, SHA-256 checksum verification,
atomic rename ensures running processes are unaffected
Add generic publish pipeline that supports both internal and external
publishing via environment variables, without leaking any internal URLs
or tool references into the public repository.