mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 06:28:53 +00:00
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:
1 parent
de993f2bea
commit
bd78d66436
16 files changed
+226
-53
No files matched your search
@@ -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 }}
|
||||
@@ -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' }}
|
||||
Reference in new issue
Block a user