Skip to content

Commit

Permalink
ci(release): add the configuration for semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed May 30, 2022
1 parent 84a3fb7 commit 35a19e3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"devDependencies": {
"semantic-release-preconfigured-conventional-commits": "1.1.7"
},
"engines": {
"node": "16.15"
}
}
18 changes: 18 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var publishCmd = `
git tag -a -f \${nextRelease.version} \${nextRelease.version} -F CHANGELOG.md || exit 1
git push --force origin \${nextRelease.version} || exit 2
./gradlew releaseKotlinMavenOnMavenCentralNexus || exit 3
./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

0 comments on commit 35a19e3

Please sign in to comment.