From 1cda8c4518b3a4353f8922a2c72547c1220089f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bouget?= Date: Wed, 3 Jul 2024 16:06:04 +0200 Subject: [PATCH] 11.0.7 --- package.json | 3 ++- scripts/tag.sh | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 scripts/tag.sh diff --git a/package.json b/package.json index e75249e..4df6060 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "buildNstart": "npm run build-visu && npm-run-all -p electron:serve ng:serve", "quickbuildNstart": "npm run quickbuild-visu && npm-run-all -p electron:serve ng:serve", "start": "npm-run-all -p electron:serve ng:serve", + "setTag": "./scripts/tag.sh", "ng:serve": "ng serve -c web -o", "setEnv": "node ./scripts/set-env.js", "build-visu": "cd ../visualization-component && yarn build:webcomponents", @@ -49,7 +50,7 @@ "electron:serve": "wait-on tcp:4200 && npm run electron:serve-tsc && electron . --serve", "electron:local": "npm run build:prod && electron .", "electron:build": "npm run build:prod && electron-builder build --publish=never", - "version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md", + "version": "11.0.7", "publishReleases": "npm run build-visu && cd ../khiops-visualization-electron && npm run build:prod && electron-builder build --windows --ia32 -p always && electron-builder build --linux -p always && electron-builder build --mac -p always", "removeDist": "rimraf dist && rimraf release && rimraf .cache", "removeMocks": "rimraf dist/khiops-visualization/mocks", diff --git a/scripts/tag.sh b/scripts/tag.sh new file mode 100644 index 0000000..df52d3a --- /dev/null +++ b/scripts/tag.sh @@ -0,0 +1,19 @@ + +if [ $# -ne 1 ]; then + echo "Usage: $0 " + exit 1 +fi + +TAG=$1 + +# Replace version into package.json +sed -i "s/\"version\": \".*\"/\"version\": \"$TAG\"/" package.json +sed -i "s/\"version\": \".*\"/\"version\": \"$TAG\"/" ./app/package.json + +git add . +git commit -am "$TAG" +git tag v$TAG +git push origin master --tags + +# exit 0 +# $SHELL \ No newline at end of file