From 36f9274e89062cc35cec3fdaccea4e0e6ecb3807 Mon Sep 17 00:00:00 2001 From: Nossimonov <277402702+Nossimonov@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:47:10 -0700 Subject: [PATCH] BOM-tolerant manifest parse in the release workflow Co-Authored-By: Claude Fable 5 --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e3816f..2d93373 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,8 @@ jobs: cp chartdown/packages/obsidian/dist/manifest.json manifest.json node -e " const fs = require('fs'); - const m = JSON.parse(fs.readFileSync('manifest.json', 'utf8')); + // BOM-tolerant: Windows tooling occasionally writes one. + const m = JSON.parse(fs.readFileSync('manifest.json', 'utf8').replace(/^/, '')); const versions = fs.existsSync('versions.json') ? JSON.parse(fs.readFileSync('versions.json', 'utf8')) : {}; versions[m.version] = m.minAppVersion; fs.writeFileSync('versions.json', JSON.stringify(versions, null, 2) + '\n');