From 627cdbcd22aecac6ddf45db2ec8f4bab41216136 Mon Sep 17 00:00:00 2001 From: redhat-qe-bot <108792105+redhat-qe-bot@users.noreply.github.com> Date: Wed, 29 Mar 2023 14:51:20 +0300 Subject: [PATCH] release-it: read version from VERSION file (#1169) (#1171) (#1173) (#1175) (#1177) Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com> --- .gitignore | 2 ++ .release-it.json | 13 +++---------- README.md | 3 +-- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 960e210919..353a741601 100644 --- a/.gitignore +++ b/.gitignore @@ -121,3 +121,5 @@ local-cluster/_hco/ # nmp node_modules/ +package.json +package-lock.json diff --git a/.release-it.json b/.release-it.json index 0f412d969a..9e00539992 100644 --- a/.release-it.json +++ b/.release-it.json @@ -39,16 +39,9 @@ "web": false }, "plugins": { - "@j-ulrich/release-it-regex-bumper": { - "out": [ - { - "files": [ - "VERSION" - ], - "search": "\\d+\\.\\d+\\.\\d+", - "replace": "{{version}}" - } - ] + "@release-it/bumper": { + "in": "VERSION", + "out": "VERSION" } } } diff --git a/README.md b/README.md index 2ecd755fbb..9b745eb772 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,7 @@ export GITHUB_TOKEN= * [release-it](https://github.com/release-it/release-it) ```bash sudo npm install --global release-it -npm install --save-dev @j-ulrich/release-it-regex-bumper -rm -f package.json package-lock.json +npm install --save-dev @release-it/bumper ``` ### usage: * Create a release, run from the relevant branch.