Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ jobs:
date: new Date().toISOString().slice(0, 10),
changefiles,
langs: ['en', 'zh'],
reuseHarmonyFromEn: true,
template: 'default',
};

Expand Down Expand Up @@ -184,7 +183,6 @@ jobs:
fs.mkdirSync('.changelog', { recursive: true });
fs.writeFileSync('.changelog/en.md', enLines.join('\n') + '\n', 'utf8');
fs.writeFileSync('.changelog/zh.md', zhLines.join('\n') + '\n', 'utf8');
fs.writeFileSync('.changelog/harmony.md', enLines.join('\n') + '\n', 'utf8');
console.log('Wrote fallback changelog blocks for version', version);
}

Expand Down Expand Up @@ -221,14 +219,12 @@ jobs:
const parsed = JSON.parse(data || '{}');
const en = parsed.blocks && parsed.blocks.en;
const zh = parsed.blocks && parsed.blocks.zh;
const harmony = parsed.harmony || en;
if (!en || !zh) {
throw new Error('Missing en/zh blocks in response');
}
fs.mkdirSync('.changelog', { recursive: true });
fs.writeFileSync('.changelog/en.md', String(en).trimEnd() + '\n', 'utf8');
fs.writeFileSync('.changelog/zh.md', String(zh).trimEnd() + '\n', 'utf8');
fs.writeFileSync('.changelog/harmony.md', String(harmony).trimEnd() + '\n', 'utf8');
console.log('Changelog blocks generated via API. traceId:', parsed.traceId || '(none)');
} catch (e) {
console.error('Failed to parse API response, fallback to template:', e.message || e);
Expand Down Expand Up @@ -271,19 +267,6 @@ jobs:
fi
done

harmony_block=".changelog/harmony.md"
harmony_target="packages/harmony_vtable/library/CHANGELOG.md"
if [ -f "$harmony_block" ]; then
if [ -f "$harmony_target" ]; then
cp "$harmony_target" "${harmony_target}.bak"
cat "$harmony_block" "${harmony_target}.bak" > "$harmony_target"
else
cp "$harmony_block" "$harmony_target"
fi
else
echo "Missing harmony changelog block, skip."
fi

- name: Generate rush version (release)
if: startsWith(github.ref_name, 'release/')
run: node common/scripts/install-run-rush.js version --bump
Expand Down
Loading