This guide explains how to release new versions of the Vapi Flutter SDK to pub.dev using GitHub releases.
- Go to pub.dev and sign in
- Navigate to your package page
- Go to the Admin tab
- Under Automated Publishing, click Enable publishing from GitHub Actions
- Enter your repository:
<your-github-username>/<your-repository-name> - Set tag pattern:
v{{version}}
Note: You must be a verified publisher or have uploader permissions on the package.
Follow semantic versioning:
- MAJOR (1.0.0 → 2.0.0): Breaking changes
- MINOR (0.1.0 → 0.2.0): New features, improvements, bug fixes
- PATCH (0.1.0 → 0.1.1): Bug fixes only
version: 0.2.0 # Update accordingly## [0.2.0] - 2025-06-25
### Added
- New feature X
### Fixed
- Bug where Z happened
### Changed
- Improved performance of B
### Breaking Changes # For major versions only
- Renamed method `oldName()` to `newName()`Before committing, ensure all checks pass locally:
./scripts/run_checks.shThis script runs the same checks as CI:
- Code formatting
- Static analysis
- Unit tests
- pub.dev score check
- Package validation
git add pubspec.yaml CHANGELOG.md
git commit -m "chore: bump version to 0.2.0"
git push origin main# Create tag matching the version
git tag v0.2.0
# Push the tag to trigger publishing
git push origin v0.2.0The GitHub Action will automatically publish to pub.dev using OIDC authentication.
Check the Actions tab for the "Publish to pub.dev" workflow status.
After successful publishing, you can create a GitHub release:
- Go to Releases → Create a new release
- Choose existing tag:
v0.2.0 - Title:
v0.2.0 - Copy notes from CHANGELOG.md
- Publish release
- Workflow not triggering: Ensure tag matches pattern
v{{version}} - Authentication failed: Verify automated publishing is enabled on pub.dev
- Version conflict: Ensure version bump in pubspec.yaml
- Manual fallback:
flutter pub publish
- Test locally:
flutter testandflutter pub publish --dry-run - Follow semantic versioning strictly
- Keep CHANGELOG updated
- Always release from main branch
- Use consistent tag format:
vX.Y.Z
0.1.0