mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Release v5.0.0-alpha.3 (#2623)
* v5.0.0-alpha.3 Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fix Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
e0c0e40b02
commit
0ae5e948c5
5 files changed
+30
-2
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import appInfo from "../package.json";
|
||||
import semver from "semver";
|
||||
|
||||
const packagePath = path.join(__dirname, "../package.json");
|
||||
const versionInfo = semver.parse(appInfo.version);
|
||||
const buildNumber = process.env.BUILD_NUMBER || "1";
|
||||
let buildChannel = "alpha";
|
||||
|
||||
if (versionInfo.prerelease) {
|
||||
if (versionInfo.prerelease.includes("alpha")) {
|
||||
buildChannel = "alpha";
|
||||
} else {
|
||||
buildChannel = "beta";
|
||||
}
|
||||
appInfo.version = `${versionInfo.major}.${versionInfo.minor}.${versionInfo.patch}-${buildChannel}.${versionInfo.prerelease[1]}.${buildNumber}`;
|
||||
} else {
|
||||
appInfo.version = `${appInfo.version}-latest.${buildNumber}`;
|
||||
}
|
||||
|
||||
|
||||
fs.writeFileSync(packagePath, `${JSON.stringify(appInfo, null, 2)}\n`);
|
||||
Reference in new issue
Block a user