Skip to content

Commit

Permalink
feat: handle versioned extends inputs correctly
Browse files Browse the repository at this point in the history
In some cases, you may want to provide a version for the config you want
to extend. This change will now pass the correct format for such a case
down to semantic-release.
  • Loading branch information
heiko.rothe committed Aug 1, 2022
1 parent ccac674 commit 4a51b9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/handleOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(/(?<!^)@.+/, ''))
return {
extends: extendModuleNames
};
} else {
return {};
}
Expand Down

0 comments on commit 4a51b9f

Please sign in to comment.