This action helps you to bump the version of your pubspec.yaml file.
The following is an example .github/workflows/main.yml that will execute when a push to the main branch occurs.
The following is an example .github/workflows/main.yml
that will execute when a push
to the main
branch occurs.
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ricardodalarme/bump-pubspec-version@main
with:
mode: "major" # major, minor, patch
consider_code: true
- uses: EndBug/add-and-commit@v9
This order is important!
- uses: actions/checkout@v3
- uses: ricardodalarme/bump-pubspec-version@main
If the repository is not checked out first, the script cannot find the properties file.