Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ricardodalarme/action-bump-pubspec-version

GitHub Action to help update the version of pubspec.yaml
https://github.com/ricardodalarme/action-bump-pubspec-version

actions dart flutter github pub pubspec

Last synced: about 2 months ago
JSON representation

GitHub Action to help update the version of pubspec.yaml

Awesome Lists containing this project

README

        

# 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.

```yaml
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!

```yaml
- 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.