Add version in web/ui/package-lock.json (#12771)

This commit adds the option --include-workspace-root in ui_release.sh
npm scripts in order to also include the version in web/ui/pagkage jsons
files when bumping the version. This also avoids issues when building
directly with npm install on some systems.

Signed-off-by: Daniel Mellado <dmellado@redhat.com>
This commit is contained in:
Daniel Mellado 2023-09-01 10:38:15 +02:00 committed by GitHub
parent 1df0fb5569
commit 6ee3db15e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View file

@ -85,7 +85,7 @@ function bumpVersion() {
fi
done
# increase the version on all packages
npm version "${version}" --workspaces
npm version "${version}" --workspaces --include-workspace-root
}
if [[ "$1" == "--copy" ]]; then

View file

@ -1,10 +1,12 @@
{
"name": "prometheus-io",
"version": "0.46.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "prometheus-io",
"version": "0.46.0",
"workspaces": [
"react-app",
"module/*"

View file

@ -27,5 +27,6 @@
"react-scripts": "^5.0.1",
"ts-jest": "^29.1.0",
"typescript": "^4.9.5"
}
},
"version": "0.46.0"
}