From ca92c9316523af6219f09c373bb0e73ca14c8cf0 Mon Sep 17 00:00:00 2001 From: Tomasz Tutka Date: Tue, 1 Oct 2024 16:07:43 +0200 Subject: [PATCH] added releaserc json --- .releaserc.json | 50 ++++++++++++++++++++++++++++ equinix-openapi-fabric-tests/pom.xml | 2 +- equinix-openapi-fabric/pom.xml | 2 +- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..d364e16 --- /dev/null +++ b/.releaserc.json @@ -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" + ] + } + ] + ] +} diff --git a/equinix-openapi-fabric-tests/pom.xml b/equinix-openapi-fabric-tests/pom.xml index bd04f4f..0022016 100644 --- a/equinix-openapi-fabric-tests/pom.xml +++ b/equinix-openapi-fabric-tests/pom.xml @@ -5,7 +5,7 @@ com.equinix openapi-fabric-tests equinix-openapi-fabric-tests - 0.5.0 + 0.9.0 com.equinix diff --git a/equinix-openapi-fabric/pom.xml b/equinix-openapi-fabric/pom.xml index 4d59c1f..8cd6a45 100644 --- a/equinix-openapi-fabric/pom.xml +++ b/equinix-openapi-fabric/pom.xml @@ -5,7 +5,7 @@ equinix-openapi-fabric jar equinix-openapi-fabric - 0.5.0 + 0.9.0 https://github.com/openapitools/openapi-generator Equinix Fabric API Specification 4.11 generated SDK