release
Execute the complete release workflow in a single command.
Usage
relizy release [options]What It Does
The release command combines multiple operations:
- ✅ Bumps version in package.json
- ✅ Generates/updates CHANGELOG.md
- ✅ Creates a git commit
- ✅ Creates a git tag
- ✅ Publishes to npm
- ✅ Creates GitHub or GitLab release
- ✅ Posts to social media (optional)
- ✅ Posts a comment on the PR/MR (optional)
Options
Release Type
Specify the version bump type:
# Patch release (1.0.0 → 1.0.1)
relizy release --patch
# Minor release (1.0.0 → 1.1.0)
relizy release --minor
# Major release (1.0.0 → 2.0.0)
relizy release --majorAll available version flags: --patch, --minor, --major, --prerelease, --prepatch, --preminor, --premajor
If no type is specified, Relizy automatically detects it from commits.
--canary
Publish a temporary test version without git side effects:
relizy release --canaryWhen --canary is used, Relizy automatically disables: changelog generation, git commit, git tag, git push, provider release (GitHub/GitLab), and social media posting. Only publishing to npm and PR comments remain active.
The canary version format is {nextVersion}-canary.{sha}.0 (e.g., 1.3.0-canary.a3f4b2c.0).
Use --preid to customize the prerelease identifier:
relizy release --canary --preid snapshot
# → 1.3.0-snapshot.a3f4b2c.0See the Canary Releases guide for full details.
--no-commit
Skip creating git commit:
relizy release --no-commit--no-push
Skip pushing to remote:
relizy release --no-push--dry-run
Preview changes without executing:
relizy release --dry-run--yes
Skip all confirmations:
relizy release --yes--no-git-tag
Skip pushing git tag:
relizy release --no-git-tag--no-social
Skip social media posting:
relizy release --no-social--no-pr-comment
Skip PR/MR comment posting:
relizy release --no-pr-comment--pr-number
Override the auto-detected PR/MR number:
relizy release --patch --pr-number 42Useful in CI/CD where the PR number is available as an environment variable:
relizy release --patch --yes --pr-number ${{ github.event.pull_request.number }}--no-provider-release
Skip provider release creation (GitHub/GitLab):
relizy release --no-provider-release--no-publish
Skip npm publishing:
relizy release --no-publishExamples
Basic Release
# Interactive release
relizy release --patch
# Output:
# → Bumping version to 1.0.1
# → Generating changelog
# → Creating commit
# → Creating tag v1.0.1
# → Pushing to remote
# ✓ Release complete!Complete Release with Publishing
relizy release --minor
# This will:
# 1. Bump to 1.1.0
# 2. Update changelog
# 3. Commit and tag
# 4. Publish to npm
# 5. Create GitHub releaseMonorepo Selective Release
relizy release --selective --minor
# Only packages with changes are bumpedCI/CD Usage
# Automated release in CI
relizy release --patch --yes --no-cleanCanary Release
# Publish a canary version
relizy release --canary
# Canary with custom preid in CI
relizy release --canary --preid snapshot --yes
# Canary with PR comment
relizy release --canary --yes --pr-number 42See Also
- Canary Releases - Full guide on canary releases
- bump - Version bumping only
- changelog - Changelog generation only
- publish - NPM publishing only
- provider-release - Provider releases only
- pr-comment - PR/MR comments only