Skip to content

Commit

Permalink
Merge pull request #3956 from Tyriar/fix_addon_version
Browse files Browse the repository at this point in the history
Fix version of published addons
  • Loading branch information
Tyriar authored Jul 28, 2022
2 parents 51f89bb + 1be14e4 commit 2482c0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ function getNextBetaVersion(packageJson) {
process.exit(1);
}
const tag = 'beta';
// const stableVersion = packageJson.version.split('.');
// const nextStableVersion = `${stableVersion[0]}.${parseInt(stableVersion[1]) + 1}.0`;
const nextStableVersion = `5.0.0`;
let nextStableVersion;
if (packageJson.name = 'xterm') {
nextStableVersion = `5.0.0`;
} else {
const stableVersion = packageJson.version.split('.');
nextStableVersion = `${stableVersion[0]}.${parseInt(stableVersion[1]) + 1}.0`;
}
const publishedVersions = getPublishedVersions(packageJson, nextStableVersion, tag);
if (publishedVersions.length === 0) {
return `${nextStableVersion}-${tag}.1`;
Expand Down

0 comments on commit 2482c0e

Please sign in to comment.