Skip to content

Update pubspec version

Actions
This action updates the pubspec version with different strategies
v2
Latest
Star (5)


Update pubspec.yaml version action

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.

Inputs

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

Outputs

old-version

The old version of the project.

new-version

The new version of the project.

Example usage

uses: stikkyapp/update-pubspec-version@v2
with:
  strategy: 'patch'
  bump-build: true
  path: './pubspec.yaml'

Update pubspec version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action updates the pubspec version with different strategies
v2
Latest

Update pubspec version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.