1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-24 04:31:31 +03:00

refactor: rename GitHub workflows release script as pre-release

This commit is contained in:
louistiti 2022-10-09 21:27:12 +08:00
parent 4fcf8dceda
commit 3f6e6ccdea
2 changed files with 10 additions and 5 deletions

View File

@ -55,8 +55,8 @@
"start": "cross-env LEON_NODE_ENV=production node ./server/dist/index.js",
"train": "ts-node scripts/train/run-train.js",
"prepare-release": "ts-node scripts/release/prepare-release.js",
"release:python-bridge": "ts-node scripts/release/release-binaries.js python-bridge",
"release:tcp-server": "ts-node scripts/release/release-binaries.js tcp-server",
"pre-release:python-bridge": "ts-node scripts/release/pre-release-binaries.js python-bridge",
"pre-release:tcp-server": "ts-node scripts/release/pre-release-binaries.js tcp-server",
"check": "ts-node scripts/run-check.js",
"docker:build": "docker build -t leon-ai/leon .",
"docker:run": "docker compose up",

View File

@ -8,9 +8,9 @@ import { LogHelper } from '@/helpers/log-helper'
import { LoaderHelper } from '@/helpers/loader-helper'
/**
* Release binaries via GitHub Actions
* Pre-release binaries via GitHub Actions
* 1. Ask for confirmation whether the binary version has been bumped
* 2. Trigger GitHub workflow to release binaries
* 2. Trigger GitHub workflow to pre-release binaries
*/
const BUILD_TARGETS = new Map()
@ -57,7 +57,12 @@ BUILD_TARGETS.set('tcp-server', {
stdout: 'inherit'
})
LogHelper.success('GitHub workflow triggered. The release is on its way!')
LogHelper.success(
'GitHub workflow triggered. The pre-release is on its way!'
)
LogHelper.success(
'Once the pre-release is done, go to the GitHub releases to double-check information and hit release'
)
} catch (e) {
LogHelper.error(
`An error occurred while triggering the GitHub workflow: ${e}`