From 6b097087a2d016e9b6ece6d95196b7761a03c9df Mon Sep 17 00:00:00 2001 From: Sekwah Date: Fri, 14 May 2021 11:14:53 +0100 Subject: [PATCH] build: Shorten updateChangelog steps --- build.gradle | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/build.gradle b/build.gradle index c815fed..d2cce6c 100644 --- a/build.gradle +++ b/build.gradle @@ -248,25 +248,7 @@ task runJar() { task updateChangelog { doLast{ exec { - commandLine 'cmd', '/c', 'npx standard-version@9.3.0 --skip.changelog --skip.tag' - ext.output = { - return standardOutput.toString() - } - } - exec { - commandLine 'cmd', '/c', 'npx standard-version@9.3.0 -i docs/CHANGELOG.md -t (v)[0-9]+.[0-0]+.[0-0]+(?!-) --skip.commit --skip.tag --skip.bump' - ext.output = { - return standardOutput.toString() - } - } - exec { - commandLine 'cmd', '/c', 'git add docs/CHANGELOG.md' - ext.output = { - return standardOutput.toString() - } - } - exec { - commandLine 'cmd', '/c', 'git commit -m "chore(changelog): Update CHANGELOG.md with full release notes.' + commandLine 'cmd', '/c', 'npx standard-version@9.3.0 -i docs/CHANGELOG.md -t (v)[0-9]+.[0-0]+.[0-0]+(?!-) --skip.tag' ext.output = { return standardOutput.toString() }