Skip to content

Commit

Permalink
Merge pull request #254 from schadomi7/main
Browse files Browse the repository at this point in the history
Fix skip non-semver tag names, instead of crashing
  • Loading branch information
confused-Techie authored Apr 13, 2024
2 parents 0677d51 + 8898cfb commit a01d999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/constructNewPackagePublishData.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function constructNewPackagePublishData(opts = {}) {

for (let i = 0; i < opts.tags.length; i++) {
let curVer = semver.clean(opts.tags[i].name);
if (curVer !== LATEST_VER) {
if (curVer && curVer !== LATEST_VER) {
out.versions[curVer] = buildAbsentVer(curVer, opts);
}
}
Expand Down

0 comments on commit a01d999

Please sign in to comment.