From 91235ca2c6d1b42cc086283916f28304b59bb9ea Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 25 Jul 2022 07:08:55 -0700 Subject: [PATCH] release 6.0.0-alpha.0 (#5886) --- package.json | 2 +- scripts/create-release-pr.mjs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 02f0bbcec0..5e3b764467 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/create-release-pr.mjs b/scripts/create-release-pr.mjs index 54b6ed17c5..e135f66fc4 100755 --- a/scripts/create-release-pr.mjs +++ b/scripts/create-release-pr.mjs @@ -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,