# 🚀 tarkus-npm-publisher
A lightweight CLI tool to streamline your Node.js or TypeScript project release process: build, version bump, commit, push to GitHub, and publish to NPM — all in one flow.



---
## ✨ Features
- ✅ Detects uncommitted files and prompts for commit
- 📦 Interactive version bump (`patch`, `minor`, `major`)
- ⚙️ Optional build step with customizable command (e.g. `tsc`, `npm run build`)
- 🔐 Checks NPM login and assists if not logged in
- 🚀 Pushes commits and tags to GitHub
- 📤 Publishes package to NPM with public access
---
## 📦 Installation
### As a dev dependency:
```bash
npm install -D tarkus-npm-publisher
npm install -g tarkus-npm-publisher
npx tarkus-npm-publisher
"scripts": {
"release": "tarkus-npm-publisher"
}
Then run:
npm run release
√ 🚨 Uncommitted changes detected. Commit now? ... yes
√ 📝 Enter commit message: ... add new feature
√ 📦 Run build process? ... yes
√ ⚙️ Enter build command: ... tsc
√ 📦 Choose version bump: » minor
📦 Bumping version: minor
🚀 Pushing changes to GitHub...
🔐 Checking NPM login...
📤 Publishing to NPM...
[✓] Done!
Before using:
- Ensure your project has a valid
package.json
- Initialize git and link to a remote (e.g. GitHub)
- Log in to NPM at least once (
npm login
)
MIT © exeldtarkus