fix: tighten release script version sync

This commit is contained in:
Affaan Mustafa
2026-04-12 22:10:06 -07:00
parent 057cfe3203
commit f1249d3915
4 changed files with 30 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ function runTests() {
})) passed++; else failed++;
if (test('release script reruns release metadata sync validation before commit/tag', () => {
const syncCheckIndex = source.indexOf('node tests/plugin-manifest.test.js');
const syncCheckIndex = source.lastIndexOf('node tests/plugin-manifest.test.js');
const commitIndex = source.indexOf('git commit -m "chore: bump plugin version to $VERSION"');
assert.ok(syncCheckIndex >= 0, 'release.sh should run plugin-manifest.test.js');