Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: change prerelease versions suffix to rc #36

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 22 additions & 13 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
branches:
- main
- name: develop
channel: dev
prerelease: dev
channel: rc
prerelease: rc
plugins:
- '@semantic-release/commit-analyzer'
- - '@semantic-release/release-notes-generator'
- linkCompare: true
linkReferences: true
writerOpts:
commitGroupsSort: [ type, title ]
commitSort: [ scope, subject ]
commitGroupsSort:
- type
- title
commitSort:
- scope
- subject
- - semantic-release-replace-plugin
- replacements:
- countMatches: true
files: [ gradle.properties ]
files:
- gradle.properties
from: version=.*
to: version=${nextRelease.version}
results:
Expand All @@ -23,7 +28,8 @@ plugins:
numMatches: 1
numReplacements: 1
- countMatches: true
files: [ README.md ]
files:
- README.md
from:
- <version>.*</version>
- "'io.github.kennedykori:utils:.*'"
Expand All @@ -42,13 +48,13 @@ plugins:
- - '@semantic-release/changelog'
- changelogFile: docs/CHANGELOG.md
- - '@semantic-release/exec'
- publishCmd: " export GITHUB_TOKEN='${process.env.GITHUB_TOKEN}'; export ORG_GRADLE_PROJECT_signingKey='${process.env.GRADLE_SIGNING_KEY}'; export ORG_GRADLE_PROJECT_signingPassword='${process.env.GRADLE_SIGNING_PASSWORD}'; export ORG_GRADLE_PROJECT_sonatypePassword='${process.env.GRADLE_SONATYPE_PASSWORD}'; export ORG_GRADLE_PROJECT_sonatypeUsername='${process.env.GRADLE_SONATYPE_USERNAME}'; ./gradlew -Pgithub.username=kennedykori -Psigning.inMemory=true publish && ./gradlew -Pgithub.username=kennedykori -Psigning.inMemory=true findSonatypeStagingRepository closeAndReleaseSonatypeStagingRepository"
- publishCmd: "export GITHUB_TOKEN='${process.env.GITHUB_TOKEN}'; export ORG_GRADLE_PROJECT_signingKey='${process.env.GRADLE_SIGNING_KEY}'; export ORG_GRADLE_PROJECT_signingPassword='${process.env.GRADLE_SIGNING_PASSWORD}'; export ORG_GRADLE_PROJECT_sonatypePassword='${process.env.GRADLE_SONATYPE_PASSWORD}'; export ORG_GRADLE_PROJECT_sonatypeUsername='${process.env.GRADLE_SONATYPE_USERNAME}'; ./gradlew -Pgithub.username=kennedykori -Psigning.inMemory=true publish && ./gradlew -Pgithub.username=kennedykori -Psigning.inMemory=true findSonatypeStagingRepository closeAndReleaseSonatypeStagingRepository"
- - '@semantic-release/git'
- assets: [ docs/CHANGELOG.md, gradle.properties, README.md ]
message: "release: ${nextRelease.version} [skip ci]


${nextRelease.notes}"
- assets:
- docs/CHANGELOG.md
- gradle.properties
- README.md
message: "release: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
- - '@semantic-release/github'
- assets:
- path: build/libs/*.jar
Expand All @@ -59,7 +65,10 @@ tagFormat: v${version}
# .md#plugin-options-configuration
# ------------------------------------------------------------------------------
parserOptions:
noteKeywords: [ BREAKING CHANGE, BREAKING CHANGES, BREAKING ]
noteKeywords:
- BREAKING CHANGES
- BREAKING CHANGE
- BREAKING
preset: conventionalcommits
presetConfig:
types:
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ publishing {
publications {
create<MavenPublication>("utils") {
this.artifactId = artifactID
this.groupId = groupID
this.version = project.version.toString()

from(components["java"])

Expand Down
Loading