diff --git a/package.json b/package.json index e2ae4edcf3..e762787ae3 100644 --- a/package.json +++ b/package.json @@ -41,83 +41,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "sbt dumpLicenseReportAggregate && cp ./target/license-reports/root-licenses.md ./DEPENDENCIES.md" - } - ], - [ - "@semantic-release/exec", - { - "prepareCmd": "sbt \"prismAgentServer/test:runMain io.iohk.atala.api.util.Tapir2StaticOAS ${process.env.PWD}/prism-agent/service/api/http/prism-agent-openapi-spec.yaml ${nextRelease.version}\"" - } - ], - [ - "@semantic-release/exec", - { - "prepareCmd": "sbt \"release release-version ${nextRelease.version} next-version ${nextRelease.version}-SNAPSHOT with-defaults\"" - } - ], - [ - "@semantic-release/exec", - { - "prepareCmd": "yq eval -i '.appVersion = \"${nextRelease.version}\" | .version = \"${nextRelease.version}\"' ./infrastructure/charts/agent/Chart.yaml" - } - ], - [ - "@semantic-release/exec", - { - "prepareCmd": "helm package -d infrastructure/charts -u infrastructure/charts/agent" - } - ], - [ - "@semantic-release/exec", - { - "prepareCmd": "helm repo index --url \"https://raw.githubusercontent.com/hyperledger-labs/open-enterprise-agent/main/infrastructure/charts\" --merge index.yaml infrastructure/charts" - } - ], - [ - "@semantic-release/exec", - { - "prepareCmd": "yq -i -P infrastructure/charts/index.yaml" - } - ], - [ - "@semantic-release/exec", - { - "prepareCmd": "docker buildx build --platform=linux/arm64,linux/amd64 --push -t ghcr.io/input-output-hk/prism-agent:${nextRelease.version} ./prism-agent/service/server/target/docker/stage" - } - ], - [ - "@semantic-release/changelog", - { - "changelogFile": "CHANGELOG.md" - } - ], - [ - "@semantic-release/git", - { - "assets": [ - "version.sbt", - "CHANGELOG.md", - "DEPENDENCIES.md", - "package.json", - "package-lock.json", - "prism-agent/service/api/http/prism-agent-openapi-spec.yaml", - "infrastructure/charts/agent/Chart.yaml", - "infrastructure/charts/index.yaml", - "infrastructure/charts/*.tgz" - ], - "message": "chore(release): cut atala prism ${nextRelease.version} release\n\n${nextRelease.notes}\n\nSigned-off-by: Anton Baliasnikov " - } - ], - [ - "semantic-release-slack-bot", - { - "notifyOnSuccess": true, - "notifyOnFail": true, - "markdownReleaseNotes": true, - "onSuccessTemplate": { - "text": "A new version of Atala PRISM successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version\n\nRelease notes:\n$release_notes" - } + "prepareCmd": "sed -i.bak \"s/PRISM_AGENT_VERSION=.*/PRISM_AGENT_VERSION=${nextRelease.version}/\" ./infrastructure/local/.env && rm -f ./infrastructure/local/.env.bak" } ] ]