Automated version bumping and publishing for Node.js packages, powered by Funish.
- 🚀 Simple and intuitive CLI
- 📦 Automatic package manager detection
- 🔄 Semantic version bumping
- 🏷️ Smart tag handling
- 🔒 Safe publishing workflow
- 💪 Prerelease support
- 🌟 Full TypeScript support
- 🤝 Works with npm, yarn, and pnpm
# npm
$ npm install @funish/bump
# yarn
$ yarn add @funish/bump
# pnpm
$ pnpm add @funish/bump# Bump prerelease version (default)
$ bump version
# Bump specific version type
$ bump version --release minor
# Bump version with tag
$ bump version --release prerelease --tag beta
# Bump version in specific directory
$ bump version --path ./packages/mypackage# Publish package (interactive)
$ bump publish
# Publish with specific tag
$ bump publish --tag beta
# Publish from specific directory
$ bump publish --path ./packages/mypackageimport { bumpVersion } from "@funish/bump";
// Bump prerelease version
await bumpVersion();
// Bump minor version
await bumpVersion({ release: "minor" });
// Bump version with tag
await bumpVersion({
release: "prerelease",
tag: "beta",
});import { bumpPublish } from "@funish/bump";
// Publish package
await bumpPublish();
// Publish with tag
await bumpPublish({ tag: "beta" });
// Publish from specific directory
await bumpPublish({ path: "./packages/mypackage" });Bumps the version of a package according to semver rules.
path(string): Path to package directory (default: current directory)release(ReleaseType): Type of version bump (default: "prerelease")tag(string): Tag for prerelease versions (default: "edge")
Publishes a package to npm with smart tag handling.
path(string): Path to package directory (default: current directory)tag(string): Tag to publish with (default: prerelease identifier or "edge")
-
Stable versions (e.g., 1.0.0):
- Published to
latesttag - Also tagged as
edge - Requires confirmation before publishing
- Published to
-
Prerelease versions (e.g., 1.0.0-beta.1):
- Published directly to prerelease tag
- Tag determined from version or specified manually
- No confirmation required
Please read our Contributing Guide before submitting a Pull Request to the project.