Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit fa4b9e4

Browse files
authored
Fix release script to set the latest Theia versions for .0-releases only (#776)
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
1 parent 5ac400a commit fa4b9e4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

make-release.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,24 @@ apply_files_edits () {
9292

9393
# Update extensions/plugins package.json files:
9494
# - set packages' version
95-
# - update versions of Theia and Che dependencies
95+
# - update versions of Che dependencies
9696
for m in "extensions/*" "plugins/*"; do
9797
PACKAGE_JSON="${m}"/package.json
9898
# shellcheck disable=SC2086
9999
sed_in_place -r -e "s/(\"version\": )(\".*\")/\1\"$VERSION\"/" ${PACKAGE_JSON}
100100
# shellcheck disable=SC2086
101-
sed_in_place -r -e "/plugin-packager/!s/(\"@theia\/..*\": )(\".*\")/\1\"${THEIA_VERSION}\"/" ${PACKAGE_JSON}
102-
# shellcheck disable=SC2086
103101
sed_in_place -r -e "/@eclipse-che\/api|@eclipse-che\/workspace-client|@eclipse-che\/workspace-telemetry-client/!s/(\"@eclipse-che\/..*\": )(\".*\")/\1\"$VERSION\"/" ${PACKAGE_JSON}
104102
done
105103

106104
if [[ ${VERSION} == *".0" ]]; then
105+
# Update extensions/plugins package.json files:
106+
# - update versions of Theia dependencies
107+
for m in "extensions/*" "plugins/*"; do
108+
PACKAGE_JSON="${m}"/package.json
109+
# shellcheck disable=SC2086
110+
sed_in_place -r -e "/plugin-packager/!s/(\"@theia\/..*\": )(\".*\")/\1\"${THEIA_VERSION}\"/" ${PACKAGE_JSON}
111+
done
112+
107113
sed_in_place -e "$ a RUN cd ${HOME} \&\& tar zcf ${HOME}/theia-source-code.tgz theia-source-code" dockerfiles/theia/docker/ubi8/builder-clone-theia.dockerfile
108114
fi
109115
}

0 commit comments

Comments
 (0)