diff --git a/.releaserc b/.releaserc index 5b7cd3d..8f0f220 100644 --- a/.releaserc +++ b/.releaserc @@ -11,7 +11,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "CLI_VERSION=${nextRelease.version} make update_install_script_version" + "prepareCmd": "make version=${nextRelease.version} update_install_script_version" } ], [ diff --git a/Makefile b/Makefile index f3e9e6d..3bcc3ab 100644 --- a/Makefile +++ b/Makefile @@ -8,4 +8,4 @@ setup_semantic_release: npm i @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/github @semantic-release/changelog @semantic-release/exec @semantic-release/git update_install_script_version: - sed -i "s/CLI_VERSION/$CLI_VERSION/g" install.sh \ No newline at end of file + sed -e "s/CLI_VERSION/$(version)/g" install.sh \ No newline at end of file