Skip to content

Commit 7fb207c

Browse files
committed
chore: instead of just having a VERSION file, we should ALSO actually bump the version of chectl to match the release version (0.0.2 --> 7.yy.0)
Change-Id: I52ab535adece48e61da6ec69cee934694c1b3cb3 Signed-off-by: Nick Boldt <[email protected]>
1 parent dd0043c commit 7fb207c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make-release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2019-2022 Red Hat, Inc.
3+
# Copyright (c) 2019-2023 Red Hat, Inc.
44
# This program and the accompanying materials are made
55
# available under the terms of the Eclipse Public License 2.0
66
# which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -91,6 +91,8 @@ release() {
9191
# now replace package.json dependencies
9292
apply_sed "s;github.com/eclipse-che/che-operator#\(.*\)\",;github.com/eclipse-che/che-operator#${VERSION}\",;g" package.json
9393
apply_sed "s;https://github.com/devfile/devworkspace-operator#\(.*\)\",;https://github.com/devfile/devworkspace-operator#${DWO_VERSION}\",;g" package.json
94+
# and update the app version in package.json
95+
jq '.version |= "'$VERSION'"' package.json > package.json_; mv -f package.json_ package.json
9496

9597
if ! grep -q "github.com/eclipse-che/che-operator#${VERSION}" package.json; then
9698
echo "[ERROR] Unable to find Che Operator version ${VERSION} in the package.json"; exit 1

0 commit comments

Comments
 (0)