From b9785cb49174999c3823f8af634b707e80e92045 Mon Sep 17 00:00:00 2001 From: Danilo Pianini Date: Thu, 6 Jan 2022 13:18:47 +0100 Subject: [PATCH] fix(release): correctly enable semantic commit conventions --- .releaserc.yml | 16 ---------------- release.config.js | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 16 deletions(-) delete mode 100644 .releaserc.yml create mode 100644 release.config.js diff --git a/.releaserc.yml b/.releaserc.yml deleted file mode 100644 index 0844abfd..00000000 --- a/.releaserc.yml +++ /dev/null @@ -1,16 +0,0 @@ -extends: - - semantic-release-preconfigured-conventional-commits -plugins: - - "@semantic-release/commit-analyzer" - - "@semantic-release/release-notes-generator" - - "@semantic-release/changelog" - - - - "@semantic-release/exec" - - publishCmd: | - git tag -a -f ${nextRelease.version} ${nextRelease.version} -F CHANGELOG.md - git push --force origin ${nextRelease.version} - ./gradlew releaseKotlin - ./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET - ./gradlew publishKotlinMavenPublicationToGithubRepository || true - - "@semantic-release/github" - - "@semantic-release/git" diff --git a/release.config.js b/release.config.js new file mode 100644 index 00000000..ae1bf38d --- /dev/null +++ b/release.config.js @@ -0,0 +1,19 @@ +var publishCmd = ` +git tag -a -f \${nextRelease.version} \${nextRelease.version} -F CHANGELOG.md +git push --force origin \${nextRelease.version} +./gradlew releaseKotlin +./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET +./gradlew publishKotlinMavenPublicationToGithubRepository || true +` +var config = require('semantic-release-preconfigured-conventional-commits'); +config.plugins.push( + [ + "@semantic-release/exec", + { + "publishCmd": publishCmd, + } + ], + "@semantic-release/github", + "@semantic-release/git", +) +module.exports = config