add: i18n text for config check (#2750)

This commit is contained in:
Christine.
2025-02-24 22:23:42 +08:00
committed by GitHub
parent c51199719d
commit f72a2a943b
7 changed files with 31 additions and 8 deletions

View File

@@ -32,12 +32,11 @@ async function updatePackageVersion(newVersion) {
// 获取内容根目录
const _dirname = process.cwd();
const packageJsonPath = path.join(_dirname, "package.json");
// const headhash = await getLatestCommitHash();
try {
const data = await fs.readFile(packageJsonPath, "utf8");
const packageJson = JSON.parse(data);
const initversion = packageJson.version;
// 将第一个匹配到第一个 "alpha" => 具体的hash
// 将匹配到第一个 "alpha" => 具体的hash
const fixversion = initversion.replace("alpha", newVersion);
packageJson.version = fixversion;
// 写入版本号