https://github.com/touchlab/autoversion-tagmarker
https://github.com/touchlab/autoversion-tagmarker
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/touchlab/autoversion-tagmarker
- Owner: touchlab
- License: mit
- Created: 2023-09-10T13:42:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T19:38:27.000Z (over 2 years ago)
- Last Synced: 2025-01-10T05:27:00.123Z (about 1 year ago)
- Language: TypeScript
- Size: 483 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Auto Version
GitHub action to creat a new patch version from:
* A base version consisting of a major and minor value, conforming to the Semantic Versioning convention. Ex. `2.5`.
* The git repo tags. This action assumes full, proper SemVer strings in tags mark versions.
The "Auto Version" action will look for git tags that match the `versionBase` value, find the highest value, and provide the output `nextVersion` as the next automated SemVer string value.
Example:
```yaml
- uses: touchlab/autoversion@main
id: autoversion
with:
versionBase: 2.5
- name: Print Next Version
id: outputversion
run: echo "${{ steps.autoversion.outputs.nextVersion }}"
```
If the repo had the following tags:
```
2.5.0
2.5.1
2.5.2
```
The resulting value would be `2.5.3`.
Changing the `versionBase` resets the autoversion patch number. If we changed the config to the following:
```yaml
- uses: touchlab/autoversion@main
id: autoversion
with:
versionBase: 2.6
```
The immediate next value would be `2.6.0`.
This action assumes you're applying git tags for versions.