feat: Add semantic versioning compatibility (#47)

* feat: Use regex groups

* feat: Add semver input

* deps: Add semver v7.3.7

* deps(Dev): Add @types/semver v7.3.9

* feat: Add prerelease output

* chore: Update action directory

* feat: Log prerelease value

* ci(GitHub): Update release workflow

* docs: Update README.md

* feat: Add ability to detect previous version based on semver comparison

* ci(GitHub): fix test workflow
This commit is contained in:
Ardalan Amini authored and GitHub committed 2022-04-29 00:06:26 +04:30
1 parent de993f2bea
commit bd78d66436
16 files changed
+226 -53

No files matched your search

+2 -1
View File
@@ -16,7 +16,7 @@ jobs:
environment:
name: release
url: https://github.com/ardalanamini/auto-changelog/releases
url: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
runs-on: ubuntu-latest
@@ -37,3 +37,4 @@ jobs:
with:
body: |
${{ steps.changelog.outputs.changelog }}
prerelease: ${{ steps.changelog.outputs.prerelease }}
+3
View File
@@ -49,6 +49,8 @@ jobs:
- name: Changelog
uses: ./
with:
semver: ${{ github.event_name == 'workflow_call' }}
test-with-inputes: # make sure the action works on a clean machine without building
name: Test with inputs
@@ -65,3 +67,4 @@ jobs:
commit-types: |
feat: Feature
default-commit-type: Default Type
semver: ${{ github.event_name == 'workflow_call' }}