版本号生成策略
Build and Deploy / build (push) Successful in 1m4s

This commit is contained in:
cheney
2026-04-17 10:26:51 +08:00
parent 044e4680f9
commit 826419fdbc
5 changed files with 13 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
// 生成版本号文件
import fs from 'fs';
const version = 'V1.0-' + new Date().toISOString().slice(0, 19).replace(/[-:T]/g, '');
const content = `export const VERSION = "${version}";`;
fs.writeFileSync('src/version.js', content);
console.log(`Generated version file with version: ${version}`);