This is a quick reference guide for deploying @hrica/zcatalyst-cli-plugin-react to npm.
- npm account (create at npmjs.com)
- npm CLI installed
- All tests passing
npm login# Check login
npm whoami
# Run tests
npm test
# Preview package
npm pack --dry-run# Choose one:
npm version patch # 1.0.0 -> 1.0.1 (bug fixes)
npm version minor # 1.0.0 -> 1.1.0 (new features)
npm version major # 1.0.0 -> 2.0.0 (breaking changes)npm publish --access publicgit push origin main
git push origin --tags.\scripts\publish.ps1chmod +x scripts/publish.sh
./scripts/publish.shThe script will:
- ✅ Check you're logged in
- ✅ Run all tests
- ✅ Show what will be published
- ✅ Prompt for version bump
- ✅ Publish to npm
- ✅ Push to git
# Check on npm
npm view @hrica/zcatalyst-cli-plugin-react
# Test installation
mkdir test-project
cd test-project
npm init -y
npm install @hrica/zcatalyst-cli-plugin-react# Check you're logged in
npm whoami
# Login if needed
npm login# Bump version again
npm version patch
npm publish --access public- The scoped package
@hrica/zcatalyst-cli-plugin-reactshould be unique - Verify the scope
@hricais available to you
⚠️ First publish requires--access publicfor scoped packages⚠️ Can't republish the same version number⚠️ Unpublishing has a 72-hour window- ✅ Always test in a fresh project after publishing
- ✅ Update CHANGELOG.md before publishing
- Verify on npm: https://www.npmjs.com/package/@hrica/zcatalyst-cli-plugin-react
- Test installation in a real project
- Update documentation if needed
- Announce the release
- Monitor for issues
- Full guide: See DEPLOYMENT.md
- Checklist: See PRE-PUBLISH-CHECKLIST.md
- npm docs: https://docs.npmjs.com/