diff --git a/README.md b/README.md index d10bbc3..3d497c3 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,11 @@ [![E2E Tests](https://github.com/codebtech/wp-feature-flags/actions/workflows/e2e.yml/badge.svg)](https://github.com/codebtech/wp-feature-flags/actions/workflows/e2e.yml) [![codecov](https://codecov.io/github/codebtech/wp-feature-flags/graph/badge.svg?token=QNUWGCRJGR)](https://codecov.io/github/codebtech/wp-feature-flags) +Stable tag: 0.3.2 +Requires at least: 6.2 +Tested up to: 6.4 +Requires PHP: 8.1 + WordPress Feature flags plugin allow developers to configure features in plugins/themes behind the feature flags on both the server (PHP) and client (JS/TS) side. ## Installation diff --git a/scripts/version.js b/scripts/version.js index 79f5211..4fab624 100644 --- a/scripts/version.js +++ b/scripts/version.js @@ -5,6 +5,7 @@ const package = require('../package.json'); const packagePath = path.join(process.cwd(), 'package.json'); const phpPath = path.join(process.cwd(), 'plugin.php'); +const readmePath = path.join(process.cwd(), 'README.md'); const bumpTypes = ['patch', 'minor', 'major']; @@ -51,13 +52,21 @@ const getNewVersion = () => { 2 ); - const [php] = await Promise.all([fs.promises.readFile(phpPath, fsOpts)]); + const [php, readme] = await Promise.all([ + fs.promises.readFile(phpPath, fsOpts), + fs.promises.readFile(readmePath, fsOpts), + ]); const newPHP = php.replace(new RegExp(previousVersion, 'g'), newVersion); + const newReadme = readme.replace( + new RegExp(previousVersion, 'g'), + newVersion + ); await Promise.all([ fs.promises.writeFile(packagePath, newPackage, fsOpts), fs.promises.writeFile(phpPath, newPHP, fsOpts), + fs.promises.writeFile(readmePath, newReadme, fsOpts), ]); // eslint-disable-next-line no-console