Guide for publishing new versions of Codeep.
- npm account with publish access to
codeeppackage - 2FA enabled (you'll need OTP codes)
- Git push access to both repos:
VladoIvankovic/CodeepVladoIvankovic/homebrew-codeep
Edit package.json:
# Example: 1.0.18 → 1.0.19
vim package.json # Change version numbernpm run build
npm test # If tests existgit add -A
git commit -m "v1.0.19 - Description of changes"
git pushnpm publish --otp=<6-digit-code>Get the OTP code from your authenticator app.
./scripts/update-homebrew.sh 1.0.19This script will:
- Fetch SHA256 hash from npm
- Update
homebrew-codeep/Formula/codeep.rb - Commit and push to GitHub
Manual alternative:
# Get SHA256
curl -sL https://registry.npmjs.org/codeep/-/codeep-1.0.19.tgz | shasum -a 256
# Update homebrew-codeep/Formula/codeep.rb manually
cd ~/GitHub/homebrew-codeep
# Edit Formula/codeep.rb with new version and SHA256
git add Formula/codeep.rb
git commit -m "Update codeep to v1.0.19"
git pushnpm update -g codeepbrew update
brew upgrade codeepIf you need to unpublish (within 72 hours):
npm unpublish codeep@1.0.19Note: Unpublishing is discouraged. Consider publishing a patch version instead.
Follow Semantic Versioning:
- Major (2.0.0): Breaking changes
- Minor (1.1.0): New features, backwards compatible
- Patch (1.0.1): Bug fixes, backwards compatible
Update CHANGELOG.md with notable changes for each release.