Skip to content

Commit 9180f7b

Browse files
committed
[NO-ISSUE] correctly increase the version
The update script was suffering from a bug where the version number wasn't updated correctly. Leading to it always creating a 0.1.2 release tag upstream.
1 parent 888c486 commit 9180f7b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/update.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ jobs:
4848
VERSION_MINOR=${VERSION_MINOR/\*/${CURRENT_VERSION_MINOR}} && VERSION_MINOR=${VERSION_MINOR/+/$((CURRENT_VERSION_MINOR+1))}
4949
VERSION_PATCH=${VERSION_PATCH/\*/${CURRENT_VERSION_PATCH}} && VERSION_PATCH=${VERSION_PATCH/+/$((CURRENT_VERSION_PATCH+1))}
5050
VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"
51-
PACKAGE_JSON_CONTENTS=$(jq '.version="'"$VERSION"'" \
52-
| .consolePlugin.version="'"$VERSION"'" \
53-
| ._id="activemq-artemis-jolokia-api-server@'$VERSION'"' package.json) \
54-
&& echo -E "${PACKAGE_JSON_CONTENTS}" > package.json && unset PACKAGE_JSON_CONTENTS
5551
sed -i "s~^LABEL version=.*~LABEL version=\"${VERSION}\"~g" Dockerfile
52+
sed -i "s~^ \"version\":.*\"~ \"version\": \"${VERSION}\"~g" package.json
53+
sed -i "s~^ \"version\":.*\"~ \"version\": \"${VERSION}\"~g" package.json
54+
sed -i "s~activemq-artemis-jolokia-api-server@.*~activemq-artemis-jolokia-api-server@${VERSION}\",~g" package.json
5655
git commit --all --message "Update version to ${VERSION}" || echo "nothing to commit"
5756
5857
- name: Push commits

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "activemq-artemis-jolokia-api-server",
3-
"version": "0.1.2",
3+
"version": "0.2.3",
44
"private": true,
55
"homepage": "https://github.com/arkmq-org/activemq-artemis-jolokia-api-server#readme",
66
"bugs": {
@@ -70,7 +70,7 @@
7070
"yaml": "^2.4.5"
7171
},
7272
"readme": "README.md",
73-
"_id": "activemq-artemis-jolokia-api-server@0.1.2",
73+
"_id": "activemq-artemis-jolokia-api-server@0.2.3",
7474
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
7575
"dependencies": {
7676
"base-64": "^1.0.0",

0 commit comments

Comments
 (0)