Skip to content

Commit

Permalink
Merge branch 'master' into buffer_core
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar authored May 10, 2019
2 parents 59aec69 + 0e0bcde commit b608c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getNextBetaVersion() {
}
const tag = 'beta';
const stableVersion = packageJson.version.split('.');
const nextStableVersion = `${stableVersion[0]}.${parseInt(stableVersion[1]) + 1}.${stableVersion[2]}`;
const nextStableVersion = `${stableVersion[0]}.${parseInt(stableVersion[1]) + 1}.0`;
const publishedVersions = getPublishedVersions(nextStableVersion, tag);
if (publishedVersions.length === 0) {
return `${nextStableVersion}-${tag}1`;
Expand All @@ -54,7 +54,7 @@ function getNextBetaVersion() {
}

function getPublishedVersions(version, tag) {
const versionsProcess = cp.spawnSync('npm', ['view', 'xterm', 'versions', '--json']);
const versionsProcess = cp.spawnSync('npm', ['view', packageJson.name, 'versions', '--json']);
const versionsJson = JSON.parse(versionsProcess.stdout);
if (tag) {
return versionsJson.filter(v => !v.search(new RegExp(`${version}-${tag}[0-9]+`)));
Expand Down

0 comments on commit b608c9d

Please sign in to comment.