Skip to content

Commit

Permalink
added releaserc json
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkat committed Oct 1, 2024
1 parent b72420c commit ca92c93
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"branches": [
"main"
],
"ci": false,
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/github",
{
"successComment": "This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:",
"labels": false,
"releasedLabels": false
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "echo -n '${nextRelease.version}' > version && make generate",
"publishCmd": "export GITHUB_TOKEN='${process.env.GITHUB_TOKEN}'; cd equinix-openapi-fabric && mvn -B package --file pom.xml && mvn deploy -s ${process.env.SETTINGS_PATH} -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/equinix-labs/fabric-java"
}
],
[
"@semantic-release/git",
{
"message": "ci: regenerate code for version ${nextRelease.version}",
"assets": [
"version",
"equinix-openapi-fabric/src",
"equinix-openapi-fabric/README.md",
"equinix-openapi-fabric/build.gradle",
"equinix-openapi-fabric/build.sbt",
"equinix-openapi-fabric/pom.xml",
"equinix-openapi-fabric-tests/pom.xml"
]
}
]
]
}
2 changes: 1 addition & 1 deletion equinix-openapi-fabric-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.equinix</groupId>
<artifactId>openapi-fabric-tests</artifactId>
<name>equinix-openapi-fabric-tests</name>
<version>0.5.0</version>
<version>0.9.0</version>

<parent>
<groupId>com.equinix</groupId>
Expand Down
2 changes: 1 addition & 1 deletion equinix-openapi-fabric/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>equinix-openapi-fabric</artifactId>
<packaging>jar</packaging>
<name>equinix-openapi-fabric</name>
<version>0.5.0</version>
<version>0.9.0</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>Equinix Fabric API Specification 4.11 generated SDK</description>
<scm>
Expand Down

0 comments on commit ca92c93

Please sign in to comment.