Skip to content

Commit

Permalink
Fix skip non-semver tag names, instead of crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
schadomi7 committed Apr 8, 2024
1 parent 94f6ab0 commit 8898cfb
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 8898cfb

Please sign in to comment.