@@ -39,7 +39,7 @@ update_issue_template() {
39
39
local -r templateFile=$2
40
40
41
41
# take only two first digits of the version that we will release
42
- # will get 7.35 from input 7.35 .0-SNAPSHOT
42
+ # will get 7.74 from input 7.74 .0-next
43
43
local -r versionXY=$( echo " ${currentReleaseVersion} " | sed -ne ' s/[^0-9]*\(\([0-9]\.\)\{0,4\}[0-9][^.]\).*/\1/p' )
44
44
45
45
# now extract the current latest version specified in the issue template
@@ -76,9 +76,12 @@ bump_version () {
76
76
77
77
pushd tests/e2e > /dev/null || exit
78
78
npm --no-git-tag-version version --allow-same-version " ${NEXT_VERSION} "
79
- # update devworkspace generator version
80
- jq " .\" dependencies\" .\" @eclipse-che/che-devworkspace-generator\" = \" ${NEXT_VERSION} \" " package.json > package.json.update
81
- mv package.json.update package.json
79
+ # update devworkspace generator version only for bugfix releases
80
+ if [[ " ${BASEBRANCH} " != " ${BRANCH} " ]]; then
81
+ jq " .\" dependencies\" .\" @eclipse-che/che-devworkspace-generator\" = \" ${NEXT_VERSION} \" " package.json > package.json.update
82
+ mv package.json.update package.json
83
+ fi
84
+ npm run prettier
82
85
popd > /dev/null || exit
83
86
84
87
COMMIT_MSG=" chore: Bump to ${NEXT_VERSION} in ${BUMP_BRANCH} "
@@ -160,6 +163,7 @@ pushd tests/e2e >/dev/null || exit
160
163
jq " .\" dependencies\" .\" @eclipse-che/che-devworkspace-generator\" = \" ${VERSION} \" " package.json > package.json.update
161
164
mv package.json.update package.json
162
165
npm --no-git-tag-version version --allow-same-version " ${VERSION} "
166
+ npm run prettier
163
167
popd > /dev/null || exit
164
168
165
169
docker build -t quay.io/eclipse/che-e2e:${VERSION} -f tests/e2e/build/dockerfiles/Dockerfile tests/e2e
@@ -177,9 +181,7 @@ git commit -asm "${COMMIT_MSG}"
177
181
git tag " ${VERSION} "
178
182
git push origin " ${VERSION} "
179
183
180
-
181
-
182
- # now update ${BASEBRANCH} to the new snapshot version
184
+ # now update ${BASEBRANCH} to the new next version
183
185
git checkout " ${BASEBRANCH} "
184
186
185
187
# update template in the branch
@@ -189,12 +191,12 @@ update_issue_template "${VERSION}" "${ISSUE_TEMPLATE_FILE}"
189
191
if [[ " ${BASEBRANCH} " != " ${BRANCH} " ]]; then
190
192
# bump the y digit, if it is a major release
191
193
[[ $BRANCH =~ ^([0-9]+)\. ([0-9]+)\. x ]] && BASE=${BASH_REMATCH[1]} ; NEXT=${BASH_REMATCH[2]} ; (( NEXT= NEXT+ 1 )) # for BRANCH=0.1.x, get BASE=0, NEXT=2
192
- NEXT_VERSION_Y=" ${BASE} .${NEXT} .0-SNAPSHOT "
194
+ NEXT_VERSION_Y=" ${BASE} .${NEXT} .0-next "
193
195
bump_version " ${NEXT_VERSION_Y} " " ${BASEBRANCH} "
194
196
fi
195
197
# bump the z digit
196
198
[[ ${VERSION# v} =~ ^([0-9]+)\. ([0-9]+)\. ([0-9]+) ]] && BASE=" ${BASH_REMATCH[1]} .${BASH_REMATCH[2]} " ; NEXT=" ${BASH_REMATCH[3]} " ; (( NEXT= NEXT+ 1 )) # for VERSION=0.1.2, get BASE=0.1, NEXT=3
197
- NEXT_VERSION_Z=" ${BASE} .${NEXT} -SNAPSHOT "
199
+ NEXT_VERSION_Z=" ${BASE} .${NEXT} -next "
198
200
bump_version " ${NEXT_VERSION_Z} " " ${BRANCH} "
199
201
200
202
# cleanup tmp dir
0 commit comments