فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
ci(release): never publish placeholder release notes
davoodmehraban89 committed
Oct 14, 2026 at 23:51 UTC
a086366367cbbe39c8ffcde688c8b7f9cc59f04b
1 file changed
+4
scripts/verify-phase-a-release.mjs
+4
@@ -40,6 +40,10 @@ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href)
40
try {
41
const json = path => JSON.parse(readFileSync(new URL('../' + path, import.meta.url), 'utf8'));
42
const acceptance = json('docs/PHASE_A_RELEASE_ACCEPTANCE.json');
43
+ const notes = readFileSync(new URL('../docs/PHASE_A_RELEASE_NOTES_FA.md', import.meta.url), 'utf8');
44
+ if (!notes.trim() || notes.includes('پیشنویس، منتشر نشود')) {
45
+ throw new Error('Production release notes are still an unpublished draft');
46
+ }
47
const packageVersion = json('package.json').version;
48
const desktopVersion = json('src-tauri/tauri.conf.json').version;
49
const result = verifyPhaseARelease({