diff --git a/bin/release.js b/bin/release.js index f022e98df..367cb1158 100644 --- a/bin/release.js +++ b/bin/release.js @@ -99,11 +99,22 @@ async function createRelease(version) { updateVersionInFile('includes/class-migration.php', version, [ { - search: /version_compare\([^,]+,\s*['"]unreleased['"]/gi, + search: /(?])/g, replace: (match) => match.replace(/unreleased/i, version) } ]); + const phpFiles = execWithOutput('find . -name "*.php"').split('\n'); + + phpFiles.forEach((filePath) => { + updateVersionInFile(filePath, version, [ + { + search: /@since unreleased/g, + replace: `@since ${version}` + } + ]); + }); + // Update CHANGELOG.md updateChangelog(version);