Skip to content

Commit

Permalink
fix: filter only tags that are valid
Browse files Browse the repository at this point in the history
  • Loading branch information
davikawasaki authored and antongolub committed Feb 9, 2021
1 parent e7f1646 commit 59b61ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/updateDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getNextPreVersion = (pkg, tags) => {
isNewPreRelTag || !lastVersion
? `1.0.0-${pkg._preRelease}.1`
: _nextPreVersionCases(
tags.map((tag) => getVersionFromTag(pkg, tag)),
tags.map((tag) => getVersionFromTag(pkg, tag)).filter((tag) => tag),
lastVersion,
pkg._nextType,
pkg._preRelease
Expand Down

0 comments on commit 59b61ad

Please sign in to comment.