From 7b0c1ca6ae32a4245df48fdfa9805221889f7e12 Mon Sep 17 00:00:00 2001 From: Sekwah Date: Wed, 19 May 2021 01:01:01 +0100 Subject: [PATCH] ci: add tagrelease task Just to help really, not needed but stops having to manually type it. --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8537bd5..d81161d 100644 --- a/build.gradle +++ b/build.gradle @@ -339,7 +339,17 @@ task updateChangelog { } task updateChangelogPreRelease(type: Exec) { - commandLine 'cmd', '/c', 'npx standard-version@9.3.0 --prerelease -i docs/SNAPSHOT_CHANGELOG.md' + commandLine 'cmd', '/c', 'npx standard-version@9.3.0 --prerelease -i docs/SNAPSHOT_CHANGELOG.md --skip.tag' + ext.output = { + return standardOutput.toString() + } +} + +/** + * Just to stop having to manually tagging. Probably could do this easier but meh stops typos or other issues. + */ +task tagRelease(type: Exec) { + commandLine 'cmd', '/c', 'npx standard-version@9.3.0 --prerelease -i docs/SNAPSHOT_CHANGELOG.md --skip.changelog --skip.bump' ext.output = { return standardOutput.toString() }