From 441ee141f587e97784e3d76bf3b6da0cf638a44d Mon Sep 17 00:00:00 2001 From: Ashish Padhy <100484401+Shurtu-gal@users.noreply.github.com> Date: Wed, 10 Jan 2024 01:57:02 +0530 Subject: [PATCH] feat: update versions in action.yml --- .github/workflows/if-nodejs-release.yml | 2 +- .releaserc | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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