From 5318657a50923ef7367bda690a98c0f8c2ce6ae6 Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Fri, 27 Oct 2023 14:19:17 +0100 Subject: [PATCH] chore: update .env file with each release (#771) Signed-off-by: Anton Baliasnikov --- package.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e2ae4edcf3..69524e2af8 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,12 @@ "prepareCmd": "npm version ${nextRelease.version} --git-tag-version false" } ], + [ + "@semantic-release/exec", + { + "prepareCmd": "sed -i.bak \"s/PRISM_AGENT_VERSION=.*/PRISM_AGENT_VERSION=${nextRelease.version}/\" ./infrastructure/local/.env && rm -f ./infrastructure/local/.env.bak" + } + ], [ "@semantic-release/exec", { @@ -104,9 +110,10 @@ "prism-agent/service/api/http/prism-agent-openapi-spec.yaml", "infrastructure/charts/agent/Chart.yaml", "infrastructure/charts/index.yaml", - "infrastructure/charts/*.tgz" + "infrastructure/charts/*.tgz", + "infrastructure/local/.env" ], - "message": "chore(release): cut atala prism ${nextRelease.version} release\n\n${nextRelease.notes}\n\nSigned-off-by: Anton Baliasnikov " + "message": "chore(release): cut open enterprise agent ${nextRelease.version} release\n\n${nextRelease.notes}\n\nSigned-off-by: Anton Baliasnikov " } ], [ @@ -116,7 +123,7 @@ "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" + "text": "A new version of Opent Enterprise Agent successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/$npm_package_version\n\nRelease notes:\n$release_notes" } } ]