This document outlines the process for releasing a new version of Bum.
Bum has two release channels:
- GitHub Releases - Standalone Rust binaries (via
install.sh) - npm Registry - NAPI-RS packages (via
npm install)
Both are triggered automatically when you push a version tag.
Before releasing, update the version in all of these files:
[package] name = "bum" version = "0.7.0" # Update this edition = "2021"
Update the version in three places:
- Root
versionfield (line 3) - All
optionalDependenciesentries (e.g.@owenizedd/bum-linux-x64-gnu)
# Quick way: replace every occurrence in package.json sed -i 's/"0.7.0"/"0.7.1"/g' package.json
# Update every platform package under npm/ find npm -name 'package.json' -exec sed -i 's/"0.7.0"/"0.7.1"/g' {} +
#!/usr/bin/env bash set -euo pipefail VERSION="v0.7.0" # Update this (note the 'v' prefix)
# Manually update Cargo.toml, package.json, and install.sh # Or use this helper: ./scripts/bump-version.sh 0.7.0
cargo build --release
git add Cargo.toml Cargo.lock package.json install.sh
git commit -m "Bump version to 0.7.0"
git push origin main# Create the tag git tag v0.7.0 # Push the tag to trigger releases git push origin v0.7.0
When you push a tag (e.g., v0.7.0), two workflows are triggered:
Builds standalone binaries for:
- macOS (Intel + ARM64)
- Linux (x64 + ARM64, glibc + musl)
- Windows (x64)
These are uploaded to GitHub Releases and used by install.sh.
Builds NAPI-RS packages for:
- All platforms above
- Universal macOS binary (Intel + ARM64 combined)
These are published to npm registry as @owenizedd/bum.
- Go to Actions tab
- Look for two workflow runs:
- Deploy (GitHub Releases)
- CI (npm publish)
- Ensure all jobs pass ✅
- Go to Releases
- Verify assets are uploaded (
.tar.gzand.zipfiles)
# Check if published npm view @owenizedd/bum # Test installation npx @owenizedd/[email protected] --version
# Test installation script curl -fsSL https://github.com/owenizedd/bum/raw/main/install.sh | bash bum --version
We follow Semantic Versioning:
- MAJOR (
1.0.0) - Breaking changes - MINOR (
0.7.0) - New features (backward compatible) - PATCH (
0.7.1) - Bug fixes
# Bug fix 0.6.1 → 0.6.2 # New feature 0.6.1 → 0.7.0 # Breaking change 0.6.1 → 1.0.0
If you need to recreate a tag:
# Delete local tag git tag -d v0.7.0 # Delete remote tag git push origin :refs/tags/v0.7.0 # Create new tag git tag v0.7.0 # Push new tag git push origin v0.7.0
- Check the workflow logs in GitHub Actions
- Fix the issue
- Commit the fix
- Delete and recreate the tag (see above)
Common issues:
- NPM_TOKEN expired - Update in GitHub Secrets
- Version already published - Bump to next version
- Publish check failed - Ensure tag format is
v0.7.0
After a successful release:
- Announce on social media / community channels
- Update documentation if needed
- Close related issues/PRs
- Monitor for issues from users
Use this checklist for each release:
- Update version in
Cargo.toml - Update version in
package.json(root + optionalDependencies) - Update version in all
npm/*/package.jsonfiles - Update version in
install.sh - Run
cargo build --releaseto updateCargo.lock - Commit changes with message "Bump version to X.Y.Z"
- Push to main
- Create tag:
git tag vX.Y.Z - Push tag:
git push origin vX.Y.Z - Verify GitHub Actions pass
- Verify GitHub Release created
- Verify npm package published
- Test
install.sh - Test
npx @owenizedd/[email protected] - Announce release