Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tspascoal/increment-version-action
Sample action that implements a version number incrementor.
https://github.com/tspascoal/increment-version-action
actions github-actions
Last synced: 24 days ago
JSON representation
Sample action that implements a version number incrementor.
- Host: GitHub
- URL: https://github.com/tspascoal/increment-version-action
- Owner: tspascoal
- License: mit
- Created: 2021-04-13T16:18:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T14:45:22.000Z (about 2 months ago)
- Last Synced: 2024-10-15T16:21:35.996Z (about 1 month ago)
- Topics: actions, github-actions
- Language: TypeScript
- Homepage:
- Size: 607 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Increment Version Action
Sample action that implements a version number incrementor.
Version can be in the format `MAJOR.MINOR.PATCH-PRERELEASE`
It's a little more lenient than semver since the components can be ommited (eg: MAJOR.MINOR)
You can increment major, minor or patch
Outputs a `version` variable
usage:
```yaml
- uses: tspascoal/increment-version-action@v2
id: increment
with:
version: 2.0-alpha
increment_type: major # major, minor or patch (it will thrown an error if the component type isn't present)
increment: 2 # optional. Default value is 1- run: echo new version ${{ steps.increment.outputs.version }}
```> Warning this is just a sample. Use at your own risk :)
> Note: Use v1 for node16 and v2 for node20 (recommended unless in an old runner version that doesn't support node20 yet).