diff --git a/README.md b/README.md index 4c7a5ea..5dee840 100644 --- a/README.md +++ b/README.md @@ -200,8 +200,10 @@ steps: uses: cycjimmy/semantic-release-action@v3 with: # You can extend an existing shareable configuration. + # And you can specify version range for the shareable configuration if you prefer. extends: | - @semantic-release/apm-config + @semantic-release/apm-config@^9.0.0 + @mycompany/override-config env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/src/handleOptions.js b/src/handleOptions.js index ebf8568..1c59815 100644 --- a/src/handleOptions.js +++ b/src/handleOptions.js @@ -68,7 +68,11 @@ exports.handleExtends = () => { const extend = core.getInput(inputs.extends); if (extend) { - return { extends: extend }; + const extendModuleNames = extend.split(/\r?\n/) + .map((name) => name.replace(/(?