File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # Copyright (c) 2019-2022 Red Hat, Inc.
3
+ # Copyright (c) 2019-2023 Red Hat, Inc.
4
4
# This program and the accompanying materials are made
5
5
# available under the terms of the Eclipse Public License 2.0
6
6
# which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -91,6 +91,8 @@ release() {
91
91
# now replace package.json dependencies
92
92
apply_sed " s;github.com/eclipse-che/che-operator#\(.*\)\" ,;github.com/eclipse-che/che-operator#${VERSION} \" ,;g" package.json
93
93
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
94
96
95
97
if ! grep -q " github.com/eclipse-che/che-operator#${VERSION} " package.json; then
96
98
echo " [ERROR] Unable to find Che Operator version ${VERSION} in the package.json" ; exit 1
You can’t perform that action at this time.
0 commit comments