shipforge-cli
v0.1.0
Published
Safe zero-dependency release automation CLI for versioning, validation, checksums, npm publishing, and GitHub Releases.
Maintainers
Readme
ShipForge CLI
ShipForge is a safe, zero-runtime-dependency, cross-platform release automation CLI. It discovers and synchronizes project versions, validates release state, generates changelogs and SHA-256 manifests, publishes npm packages with provenance, creates GitHub Releases, and verifies both destinations.
Requirements
- Node.js 22.14 or newer
- Git for repository checks and changelog generation
- npm for npm publication
- GitHub CLI (
gh) only when publishing or verifying GitHub Releases
Install
After the first npm publication:
npm install -g shipforge-cli
shipforge --versionFor development:
npm install
npm link
shipforge --helpSafe release workflow
shipforge init
shipforge scan
shipforge version 1.2.0
shipforge version 1.2.0 --write
shipforge changelog 1.2.0
shipforge check
shipforge checksum dist
shipforge publish 1.2.0 --npm --github --dry-run
shipforge publish 1.2.0 --npm --github --yes
shipforge verify 1.2.0shipforge version is preview-only unless --write is supplied. Publication is blocked unless release checks pass and --yes is supplied. Child processes are started with argument arrays and shell: false.
Version files detected in 0.1.0
- npm
package.json - Rust
Cargo.toml - Python
pyproject.toml - Android
build.gradleandbuild.gradle.kts - Snap
snapcraft.yaml - Alpine
APKBUILD
Commands
init— createshipforge.config.jsonscan— list detected version filescheck— validate version consistency, Git state, and project checksversion <version>— preview or synchronize versionschangelog <version>— generate release notes from Git commitschecksum [directory]— createSHA256SUMS.txtpublish <version>— publish explicitly selected npm/GitHub targetsverify <version>— verify publication results
Automated npm release
The repository includes a manually triggered GitHub Actions workflow. Add NPM_TOKEN to the npm environment, then run Publish ShipForge and confirm the requested version. Merely adding the secret does not publish anything.
Security model
ShipForge does not store npm or GitHub tokens. It relies on the user's existing npm and GitHub CLI authentication. It never invokes a shell for child processes, requires explicit publication targets, and requires --yes for irreversible publishing.
License
MIT
