/action-bump-pubspec-version

GitHub Action to help update the version of pubspec.yaml

Primary LanguageTypeScriptMIT LicenseMIT

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.