Skip to content

Commit

Permalink
Merge branch 'trunk' into enrich-follower-email
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle authored Jan 28, 2025
2 parents ea9a7d8 + 5f73af8 commit 00232ce
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,22 @@ async function createRelease(version) {

updateVersionInFile('includes/class-migration.php', version, [
{
search: /version_compare\([^,]+,\s*['"]unreleased['"]/gi,
search: /(?<!\*[\s\S]{0,50})(?<=version_compare\s*\(\s*\$version_from_db,\s*')unreleased(?=',\s*['<=>])/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);

Expand Down

0 comments on commit 00232ce

Please sign in to comment.