π
π
π
π
pub_release
Searchβ¦
π
π
π
π
pub_release
README
Creating a release
Multi-package Releases
Hooks
Dependency overrides
Automatic github releases
Attach an asset to a github release
Automating releases using Git work flows
Version File
CHANGELOG
example
Powered By
GitBook
Version File
When creating a release, pub_release will create or update a dart file containing the package version no.
The version file is called:
1
lib/src/version/version.g.dart
Copied!
The contents of the version file will be:
1
/// GENERATED BY pub_release do not modify.
2
/// pub_release version
3
String
packageVersion
=
'3.0.0'
;
4
β
Copied!
Where the packageVersion is set to the value in your pubspec.yaml.
The packageVersion variable provides a convenient method if you need to display the version no. of your package.
Previous
Automating releases using Git work flows
Next
CHANGELOG
Last modified
1yr ago
Copy link