diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index 4938a37da..7864ce5f8 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -102,6 +102,9 @@ jobs: - if: steps.packagejson.outputs.exists == 'true' name: Add plugin for conventional commits for semantic-release 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 - if: steps.packagejson.outputs.exists == 'true' name: Publish to any of NPM, Github, and Docker Hub id: release diff --git a/Makefile b/Makefile index 5955a1d37..188d689f3 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,8 @@ run: # Updates the action.yml file with the latest version of the action got from $VERSION env variable generate-assets: - sed "s/docker:\/\/asyncapi\/github-action-for-cli:.*/docker:\/\/asyncapi\/github-action-for-cli:${VERSION}'/g" action.yml > action.yml.tmp + version=$$(echo ${VERSION} | sed 's/v//g'); \ + sed "s/docker:\/\/asyncapi\/github-action-for-cli:.*/docker:\/\/asyncapi\/github-action-for-cli:$$version'/g" action.yml > action.yml.tmp @mv action.yml.tmp action.yml test: test-default test-validate-success test-validate-fail test-custom-output test-custom-commands test-optimize test-bundle test-convert