This guide covers how to publish a new MARR release to npm.
Use the release script:
./scripts/release.sh patch # 2.0.0 → 2.0.1
./scripts/release.sh minor # 2.0.0 → 2.1.0
./scripts/release.sh major # 2.0.0 → 3.0.0
This script:
git push origin main --tags
npm publish --access public
# Check npm registry
npm view @virtualian/marr
# Test installation
npm install -g @virtualian/marr
marr --version
Follow semantic versioning:
| Change Type | Version Bump | Example |
|---|---|---|
| Bug fixes, doc updates | patch | 2.0.0 → 2.0.1 |
| New features (backward compatible) | minor | 2.0.0 → 2.1.0 |
| Breaking changes | major | 2.0.0 → 3.0.0 |
403 Forbidden — Run npm login and verify with npm whoami
Package name taken — MARR uses @virtualian/marr (scoped package)
Version already exists — You cannot republish the same version; bump and try again