Skip to content

Commit

Permalink
feat: support ${version}+${name} tag format
Browse files Browse the repository at this point in the history
relates #71
  • Loading branch information
antongolub committed May 24, 2022
1 parent 7e56a1c commit c53fefb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/updateDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const getVersionFromTag = (pkg, tag) => {
if (!pkg.name) return tag || null;
if (!tag) return null;

const strMatch = tag.match(/[0-9].[0-9].[0-9].*/);
// TODO inherit semantic-release/lib/branches/get-tags.js
const strMatch = tag.match(/[0-9].[0-9].[0-9][^+]*/);
return strMatch && strMatch[0] && semver.valid(strMatch[0]) ? strMatch[0] : null;
};

Expand Down

0 comments on commit c53fefb

Please sign in to comment.