This document describes our release process, and contains the steps to be followed by an SuperWidgets maintainer at the several stages of a release.
- Ensure that the master branch is building and that tests are passing.
- Create a branch name
release-vX.Y.Z
frommaster
(from now we call itrelease branch
) - In release branch >
pubspec.yaml
, change theversion: X.Y.Z
in the second line to new version - In release branch >
README.md
:
Installation
: update dependency of super_widgets to new versionWidgets
: update the list with new added widgetsWidgets
: update sample code with new added widgets
- In release branch >
CHANGELOG.md
, add a section for this release - Ensure that the release branch is building and that tests are passing
- Run Flutter Analyzer (
flutter analyze --current-package
) in Android Studio Terminal to ensure no more issues - Run
flutter pub pub publish --dry-run
in Android Studio Terminal to test publish package (Refer to Pub.dev#Publishing package). If have any error or warning, let fix it and re-run that command. - Create pull request from release branch to master branch
- In Github, merge that pull request.
- In Android Studio, switch to master branch, pull code to update.
- Run
flutter pub pub publish --dry-run
again to ensure no more issues - Run
flutter pub pub publish
to publish new version of this package to Pub.dev - Create new Github release with:
tag version
=vX.Y.Z
Release title
=vX.Y.Z - SHORT_DESCRIPTION_WHAT_IN_RELEASE
Describe this release
= Changelog of this release, in Markdown (can be copied from CHANGELOG.md)
- It's safe to delete release branch now.
- It's done.