diff --git a/README.md b/README.md index 3ee1d13..477152e 100644 --- a/README.md +++ b/README.md @@ -163,9 +163,12 @@ readme: { ``` ## Release History +### 1.4.2 +- Fixes a bug where the stable version would not be updated in README.md when running the update-version task. + ### 1.4.1 - Fixes a bug where the initializer regex in the update version config would never match. -- The update-version tasks now accepts both strings and regexes in `options.regEx`. +- The update-version task now accepts both strings and regexes in `options.regEx`. ### 1.4.0 - Add .min as possible extension in rtlcss. diff --git a/config/update-version.js b/config/update-version.js index 43dff79..15f6342 100644 --- a/config/update-version.js +++ b/config/update-version.js @@ -12,6 +12,14 @@ module.exports = { }, src: "readme.txt", }, + readmeMd: { + options: { + regEx: /(Stable tag:\s+)(\d+(\.\d+){0,3})([^\n^\.\d]?.*?)(\n)/, + preVersionMatch: "$1", + postVersionMatch: "$5", + }, + src: "README.md", + }, // When changing or adding entries, make sure to update `aliases.yml` for "update-version-trunk". pluginFile: { diff --git a/package.json b/package.json index f229e37..8d73f0b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@yoast/grunt-plugin-tasks", "description": "Custom Yoast grunt tasks", - "version": "1.4.1", + "version": "1.4.2", "homepage": "https://github.com/Yoast/", "repository": { "type": "git",