mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:35:20 +00:00
chore: check
This commit is contained in:
parent
2fc5e55f4d
commit
3ac8bf5ab0
@ -302,6 +302,9 @@ async function generateChangelog() {
|
||||
|
||||
async function writeChangelog() {
|
||||
const { cn, en, to } = await generateChangelog();
|
||||
if (!cn && !en) {
|
||||
throw new Error('No changelog generated');
|
||||
}
|
||||
const write = async (lang) => {
|
||||
const file = lang === 'cn' ? 'CHANGELOG.zh-CN.md' : 'CHANGELOG.md';
|
||||
const oldChangelog = await fs.readFile(path.join(__dirname, `../../${file}`), 'utf8');
|
||||
|
Loading…
Reference in New Issue
Block a user