Remove pressAnyKey() and uploadArtifacts() for automated workflow

Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-13 01:19:10 +00:00
parent 78d9fb5679
commit 96459d240d
2 changed files with 3 additions and 17 deletions

View File

@ -152,10 +152,7 @@ jobs:
- name: Run release-beta
env:
RELEASE_BETA_VERSION: ${{ inputs.version }}
RELEASE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Send input to continue past the pressAnyKey prompt
yes ' ' | npm run release-beta
run: npm run release-beta
- name: Create dist tarball
run: |

View File

@ -7,22 +7,16 @@ import {
checkTagExists,
checkVersionFormat,
getRepoNames,
pressAnyKey,
execSync, uploadArtifacts, checkReleaseBranch,
execSync,
checkReleaseBranch,
} from "./lib.mjs";
import semver from "semver";
const repoNames = getRepoNames();
const version = process.env.RELEASE_BETA_VERSION;
const githubToken = process.env.RELEASE_GITHUB_TOKEN;
console.log("RELEASE_BETA_VERSION:", version);
if (!githubToken) {
console.error("GITHUB_TOKEN is required");
process.exit(1);
}
// Check if the current branch is "release"
checkReleaseBranch();
@ -60,8 +54,3 @@ buildImage(repoNames, [ "beta-slim", ver(version, "slim") ], "release", "BASE_IM
// Build full image
buildImage(repoNames, [ "beta", version ], "release");
await pressAnyKey();
// npm run upload-artifacts
uploadArtifacts(version, githubToken);