build: Shorten updateChangelog steps

This commit is contained in:
Sekwah 2021-05-14 11:14:53 +01:00
parent 99c810e1be
commit 6b097087a2
No known key found for this signature in database
GPG Key ID: C3BE2E6C861A461A
1 changed files with 1 additions and 19 deletions

View File

@ -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()
}