Skip to content

ricardodalarme/action-bump-pubspec-version

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Pump Pubspec Version

This action helps you to bump the version of your pubspec.yaml file.

Usage

The following is an example .github/workflows/main.yml that will execute when a push to the main branch occurs.

Usage

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.