This action updates the version in pubspec.yaml file. It allows for incrementing the build number or the version by a major, minor or patch version.
Input | Description | Required | Default |
---|---|---|---|
strategy |
The versioning strategy. Can be major , minor , patch , or none . |
false | none |
bump-build |
Whether to bump the build number. | false | false |
path |
The path to the pubspec.yaml file. |
false | ./pubspec.yaml |
The old version of the project.
The new version of the project.
uses: stikkyapp/update-pubspec-version@v2
with:
strategy: 'patch'
bump-build: true
path: './pubspec.yaml'