Skip to content

Commit 3e6a75a

Browse files
committed
fix(release): correct versions.json bump guard
1 parent d7019cc commit 3e6a75a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

version-bump.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ manifest.version = targetVersion;
99
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
1010

1111
// update versions.json with target version and minAppVersion from manifest.json
12-
// but only if the target version is not already in versions.json
12+
// but only if the target version key is not already present
1313
const versions = JSON.parse(readFileSync('versions.json', 'utf8'));
14-
if (!Object.values(versions).includes(minAppVersion)) {
14+
if (!(targetVersion in versions)) {
1515
versions[targetVersion] = minAppVersion;
1616
writeFileSync('versions.json', JSON.stringify(versions, null, '\t'));
1717
}

0 commit comments

Comments
 (0)