Remove pressAnyKey() and uploadArtifacts() for automated workflow
Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
This commit is contained in:
parent
78d9fb5679
commit
96459d240d
5
.github/workflows/beta-release.yml
vendored
5
.github/workflows/beta-release.yml
vendored
@ -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: |
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user