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
@@ -21,7 +21,8 @@ export async function generate(input: ChangelogInputI): Promise<string> {
const message = commit.commit.message.split("\n")[0];
let [, type, category, title, flag] = COMMIT_REGEX.exec(message) || [];
let { type, category, title, flag } =
COMMIT_REGEX.exec(message)?.groups ?? {};
if (!title) continue;