diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index 7864ce5f8..d336cc843 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -104,7 +104,7 @@ jobs: run: npm install --save-dev conventional-changelog-conventionalcommits@5.0.0 - if: steps.packagejson.outputs.exists == 'true' name: Add plugin for executing normal commands - run: npm install --save-dev @semantic-release/exec + run: npm install --save-dev @semantic-release/exec @semantic-release/git - if: steps.packagejson.outputs.exists == 'true' name: Publish to any of NPM, Github, and Docker Hub id: release diff --git a/.releaserc b/.releaserc index 7e6592bd6..ac30cf824 100644 --- a/.releaserc +++ b/.releaserc @@ -19,5 +19,9 @@ plugins: - - "@semantic-release/release-notes-generator" - preset: conventionalcommits - - "@semantic-release/exec" - - prepareCmd: sed "s/docker:\/\/asyncapi\/github-action-for-cli:.*/docker:\/\/asyncapi\/github-action-for-cli:${nextRelease.version}'/g" action.yml > action.yml.tmp && mv action.yml.tmp action.yml -- "@semantic-release/github" + - prepareCmd: "VERSION=${nextRelease.version} npm run bump:version" +- - "@semantic-release/git" + - assets: + - "action.yml" + message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" +- "@semantic-release/github" \ No newline at end of file