pub_release
11.11.1, released 3 weeks ago by onepub.dev
Automates publishing Dart packages to pub.dev, handling version bump, git tags, changelog, and optional dry-run.
What it does
Pub Release automates the release process for Dart packages. It formats code, bumps the semantic version, updates pubspec, creates git tags, generates changelog entries, and publishes to pub.dev, with support for dry‑runs and multi‑package monorepos.
AI-written summary of version 11.11.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Automating releases in CI/CD pipelines
- Managing monorepo multi‑package releases
- Validating releases without publishing (dry‑run)
- Generating changelog entries from commit messages
Skip it when
- You need manual control over every release step
- Your project is not managed with Git
- You are publishing non‑Dart packages
Strengths
- Fully automated version bump and changelog generation
- Git integration for tags and release notes
- Dry‑run mode validates release without publishing
- Supports multi‑package releases in a mono‑repo
Weaknesses
- Only works with Dart/Flutter packages
- Requires Git repository
- No support for non‑Git workflows
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 10
Run `dart pub global activate pub_release` and execute `pub_release` from your package root.
```bash
# Activate globally
dart pub global activate pub_release
# Run a release
pub_release
```Alternatives
Packages that do the same job and could replace pub_release.
- device_preview_minus
A temporary alternative to device_preview with updated version dependencies.
67Compare - cli_notify
Check pub.dev for updates for your Dart CLI and print update information.
46Compare
Works with
Packages commonly used together with pub_release: ones it builds on, ones built on it, and its own family.
- pub_semverpub_release depends on itVersions and version constraints implementing pub's versioning policy.
- mimepub_release depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- argspub_release depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- githubpub_release depends on itA high-level GitHub API Client Library for Dart and Flutter.
- pubspec_managerpub_release depends on itType-safe API to read, modify, and write pubspec.yaml while preserving comments.
- settings_yamlpub_release depends on itRead and write application settings to a YAML file using simple Dart maps and lists.
- dclipub_release depends on itA Dart SDK for building cross‑platform command line applications and scripts.
- onepubSame familyCommand line tools for the OnePub private Dart and Flutter package repository.