-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.releaserc.json
More file actions
23 lines (23 loc) · 899 Bytes
/
.releaserc.json
File metadata and controls
23 lines (23 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i \"s/^version = .*/version = '${nextRelease.version}'/\" build.gradle && sed -i \"s/<version>[0-9]*\\.[0-9]*\\.[0-9]*<\\/version>/<version>${nextRelease.version}<\\/version>/\" pom.xml",
"publishCmd": "./gradlew publish --no-daemon && curl -X POST -u \"$OSSRH_USERNAME:$OSSRH_PASSWORD\" https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/co.lettermint"
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "build.gradle", "pom.xml"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}