-
Clone the repository and install dependencies:
git clone https://github.com/pento/linked_text.git cd linked_text flutter pub get -
Enable the pre-commit hook (recommended):
git config core.hooksPath .githooks
This runs
dart formatanddart analyzeon staged Dart files before each commit.
flutter testWith coverage:
flutter test --coverageThe first version must be published manually, as pub.dev requires an initial manual publish before automated publishing can be enabled.
-
Verify the package is publishable:
dart pub publish --dry-run
-
Publish:
dart pub publish
-
On pub.dev, go to the package Admin tab → Automated publishing → enable GitHub Actions.
-
Set the repository to
pento/linked_textand the tag pattern tov{{version}}.
-
Add a changelog entry under a new
## <version>heading inCHANGELOG.md. -
Run the release script:
./tool/release.sh <version>
This will:
- Validate the version is semver-shaped
- Check the working tree is clean
- Verify
CHANGELOG.mdhas an entry for the version - Update the version in
pubspec.yaml - Run
flutter analyzeandflutter test - Commit the version bump and create an annotated tag
-
Push to trigger the publish workflow:
git push origin main --tags
-
GitHub Actions will validate the release, run tests, publish to pub.dev, and create a GitHub Release.