Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jsok/svu-version-bump-action

GitHub Action to calculate next version using svu.
https://github.com/jsok/svu-version-bump-action

Last synced: about 1 month ago
JSON representation

GitHub Action to calculate next version using svu.

Awesome Lists containing this project

README

        

# svu (Semantic Version Util) action

GitHub Action to calculate next version using [svu](https://github.com/caarlos0/svu).

## Inputs

### `bump`

What kind of version bump to perform.
Defaults to `next`, but also supports: `major`, `minor` or `patch`.

### `pattern`

**Optional**: Invokes `svu --pattern`'s behaviour, default to `*`.

### `prefix`

**Optional**: Invokes `svu --prefix`'s behaviour, defaults to `v`.

## Outputs

### `version`

The next calculated version number.

###`version-without-prefix`

The next calculated version number without the prefix.

## Usage

### Example usage

```yaml
uses: jsok/svu-version-bump-action@v2
with:
bump: 'next'
```

### Custom pattern and prefix

```yaml
uses: jsok/svu-version-bump-action@v2
with:
bump: 'next'
pattern: 'foo/*'
prefix: 'foo/v'
```

## Upgrading from `v1`

See [`v2.0.0` release notes](https://github.com/jsok/svu-version-bump-action/releases/tag/v2.0.0)