ci: Further upgrades to changelog scripts

This commit is contained in:
Sekwah 2021-05-14 02:40:12 +01:00
parent 327e7dd0cb
commit 0adb854548
No known key found for this signature in database
GPG Key ID: C3BE2E6C861A461A
1 changed files with 9 additions and 3 deletions

View File

@ -248,7 +248,13 @@ task runJar() {
task updateChangelog { task updateChangelog {
doLast{ doLast{
exec { exec {
commandLine 'cmd', '/c', 'npx standard-version -i docs/CHANGELOG.md -t (v)[0-9]+.[0-0]+.[0-0]+(?!-) --skip.tag --skip.bump --skip.commit' 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 = { ext.output = {
return standardOutput.toString() return standardOutput.toString()
} }
@ -266,7 +272,7 @@ task updateChangelog {
} }
} }
exec { exec {
commandLine 'cmd', '/c', 'npx standard-version --skip.changelog' commandLine 'cmd', '/c', 'npx standard-version@9.3.0 --skip.changelog --skip.bump'
ext.output = { ext.output = {
return standardOutput.toString() return standardOutput.toString()
} }
@ -275,7 +281,7 @@ task updateChangelog {
} }
task updateChangelogPreRelease(type: Exec) { task updateChangelogPreRelease(type: Exec) {
commandLine 'cmd', '/c', 'npx standard-version --prerelease -i docs/SNAPSHOT_CHANGELOG.md' commandLine 'cmd', '/c', 'npx standard-version@9.3.0 --prerelease -i docs/SNAPSHOT_CHANGELOG.md'
ext.output = { ext.output = {
return standardOutput.toString() return standardOutput.toString()
} }