mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
ci: Fix daily alpha workflow to just create the next alpha
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
f2070a1e4c
commit
54e7f10ca5
7 files changed
+14
-201
No files matched your search
@@ -79,8 +79,9 @@ async function fetchAllGitTags(): Promise<string[]> {
|
||||
}
|
||||
|
||||
function bumpPackageVersions() {
|
||||
const bumpPackages = spawn("npm", ["run", "bump-version"], {
|
||||
stdio: "inherit"
|
||||
const bumpPackages = spawn(`npm run bump-version ${process.env.BUMP_PACKAGE_ARGS ?? ""}`, {
|
||||
stdio: "inherit",
|
||||
shell: true,
|
||||
});
|
||||
const cleaners: (() => void)[] = [
|
||||
() => bumpPackages.stdout?.unpipe(),
|
||||
@@ -153,7 +154,7 @@ async function createReleaseBranchAndCommit(prBase: string, version: SemVer, prB
|
||||
const prBranch = `release/v${version.format()}`;
|
||||
|
||||
await pipeExecFile("git", ["checkout", "-b", prBranch]);
|
||||
await pipeExecFile("git", ["add", "packages/*/package.json", "package-lock.json"]);
|
||||
await pipeExecFile("git", ["add", "."]);
|
||||
await pipeExecFile("git", ["commit", "-sm", `Release ${version.format()}`]);
|
||||
await pipeExecFile("git", ["push", "--set-upstream", "origin", prBranch]);
|
||||
|
||||
@@ -354,6 +355,12 @@ async function createRelease(): Promise<void> {
|
||||
}
|
||||
|
||||
const selectedPrs = await pickRelevantPrs(relevantPrs, isMasterBranch);
|
||||
|
||||
if (selectedPrs.length === 0) {
|
||||
console.log(`No PRs have been found relating to ${previousReleasedVersion}, stopping...`);
|
||||
return;
|
||||
}
|
||||
|
||||
const prBody = formatChangelog(previousReleasedVersion, selectedPrs);
|
||||
|
||||
if (!isMasterBranch) {
|
||||
|
||||
Reference in new issue
Block a user