mirror of
https://github.com/lensapp/lens.git
synced 2024-09-19 05:17:22 +03:00
release 6.0.0-alpha.0 (#5886)
This commit is contained in:
parent
811d96eb74
commit
91235ca2c6
@ -3,7 +3,7 @@
|
||||
"productName": "OpenLens",
|
||||
"description": "OpenLens - Open Source IDE for Kubernetes",
|
||||
"homepage": "https://github.com/lensapp/lens",
|
||||
"version": "5.6.0-alpha.7",
|
||||
"version": "6.0.0-alpha.0",
|
||||
"main": "static/build/main.js",
|
||||
"copyright": "© 2022 OpenLens Authors",
|
||||
"license": "MIT",
|
||||
|
@ -83,7 +83,6 @@ if (basename(process.cwd()) === "scripts") {
|
||||
|
||||
|
||||
const currentVersion = new SemVer(readJsonSync("./package.json").version);
|
||||
const currentVersionMilestone = `${currentVersion.major}.${currentVersion.minor}.${currentVersion.patch}`;
|
||||
|
||||
console.log(`current version: ${currentVersion.format()}`);
|
||||
console.log("fetching tags...");
|
||||
@ -111,6 +110,9 @@ npmVersionArgs.push("--git-tag-version false");
|
||||
execSync(npmVersionArgs.join(" "), { stdio: "ignore" });
|
||||
|
||||
const newVersion = new SemVer(readJsonSync("./package.json").version);
|
||||
const newVersionMilestone = `${newVersion.major}.${newVersion.minor}.${newVersion.patch}`;
|
||||
|
||||
console.log(`new version: ${newVersion.format()}`);
|
||||
|
||||
const getMergedPrsArgs = [
|
||||
"gh",
|
||||
@ -124,7 +126,7 @@ const getMergedPrsArgs = [
|
||||
|
||||
console.log("retreiving last 500 PRs to create release PR body...");
|
||||
const mergedPrs = JSON.parse(execSync(getMergedPrsArgs.join(" "), { encoding: "utf-8" }));
|
||||
const milestoneRelevantPrs = mergedPrs.filter(pr => pr.milestone && pr.milestone.title === currentVersionMilestone);
|
||||
const milestoneRelevantPrs = mergedPrs.filter(pr => pr.milestone?.title === newVersionMilestone);
|
||||
const relaventPrsQuery = await Promise.all(
|
||||
milestoneRelevantPrs.map(async pr => ({
|
||||
pr,
|
||||
|
Loading…
Reference in New Issue
Block a user