Compare commits

...

16 Commits

Author SHA1 Message Date
Louis Lam
ad7b80ca89 WIP 2026-01-14 10:26:22 +08:00
Louis Lam
9c8c61d8f1 WIP 2026-01-14 10:24:27 +08:00
Louis Lam
10873ab0ba WIP 2026-01-13 20:18:31 +08:00
Louis Lam
3d9b029391 WIP 2026-01-13 20:14:53 +08:00
Louis Lam
50463ec93c WIP 2026-01-13 20:10:51 +08:00
Louis Lam
60041d21bf WIP 2026-01-13 20:08:06 +08:00
Louis Lam
3d226ee13d WIP 2026-01-13 20:00:19 +08:00
Louis Lam
9c43e20618 WIP 2026-01-13 19:56:41 +08:00
Louis Lam
dbf6dfcdb5 WIP 2026-01-13 19:53:36 +08:00
Louis Lam
a4c4679844 WIP 2026-01-13 19:44:21 +08:00
Louis Lam
bad63e1bf5 WIP 2026-01-13 19:41:20 +08:00
Louis Lam
fe22e618a2 WIP 2026-01-13 19:27:34 +08:00
Louis Lam
3cf74cda0f WIP 2026-01-13 19:19:47 +08:00
Louis Lam
93be3d6216 WIP 2026-01-13 19:14:22 +08:00
Louis Lam
25fa788a56 WIP 2026-01-13 19:07:35 +08:00
Louis Lam
6abc513d92 Fix again 2026-01-13 18:58:10 +08:00
3 changed files with 13 additions and 4 deletions

View File

@ -50,7 +50,8 @@ jobs:
git push origin --delete "release-${VERSION}" || true git push origin --delete "release-${VERSION}" || true
# Delete local branch if it exists # Delete local branch if it exists
git branch -D "release-${VERSION}" || true git branch -D "release-${VERSION}" || true
# Create new branch from master # For testing purpose
# git checkout beta-workflow
git checkout -b "release-${VERSION}" git checkout -b "release-${VERSION}"
- name: Install dependencies - name: Install dependencies

View File

@ -1,3 +1,6 @@
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const pkg = require("../../package.json"); const pkg = require("../../package.json");
const fs = require("fs"); const fs = require("fs");
const childProcess = require("child_process"); const childProcess = require("child_process");
@ -58,8 +61,13 @@ function commit(version) {
throw new Error("commit error"); throw new Error("commit error");
} }
// Note: Push is handled by gh pr create in the release script // Get the current branch name
// No need to push here as we're on a release branch, not master res = childProcess.spawnSync("git", ["rev-parse", "--abbrev-ref", "HEAD"]);
let branchName = res.stdout.toString().trim();
console.log("Current branch:", branchName);
// Git push the branch
childProcess.spawnSync("git", ["push", "origin", branchName, "--force"], { stdio: "inherit" });
} }
/** /**

View File

@ -48,7 +48,7 @@ checkDocker();
await checkTagExists(repoNames, version); await checkTagExists(repoNames, version);
// node extra/beta/update-version.js // node extra/beta/update-version.js
execSync("node ./extra/beta/update-version.js"); await import("../beta/update-version.mjs");
// Create Pull Request (gh pr create will handle pushing the branch) // Create Pull Request (gh pr create will handle pushing the branch)
await createReleasePR(version, previousVersion, dryRun, branchName, githubRunId); await createReleasePR(version, previousVersion, dryRun, branchName, githubRunId);