Skip to content

Commit

Permalink
chore: Have proper versioning of Che e2e project
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
  • Loading branch information
mkuznyetsov committed Nov 3, 2021
1 parent a50857c commit 062fec0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ bump_version () {

echo "Updating project version to ${NEXT_VERSION}"
echo "${NEXT_VERSION}" > VERSION
git add VERSION
COMMIT_MSG="[release] Bump to ${NEXT_VERSION} in ${BUMP_BRANCH}"

npm --no-git-tag-version version --allow-same-version "${NEXT_VERSION}"
sed_in_place -r -e "/@eclipse-che\/api|@eclipse-che\/workspace-client|@eclipse-che\/workspace-telemetry-client/!s/(\"@eclipse-che\/..*\": )(\".*\")/\1\"$VERSION\"/" package.json
git add VERSION package.json
COMMIT_MSG="chore: Bump to ${NEXT_VERSION} in ${BUMP_BRANCH}"
git commit -asm "${COMMIT_MSG}"
git pull origin "${BUMP_BRANCH}"

Expand Down Expand Up @@ -149,6 +152,9 @@ set -e
echo "${VERSION}" > VERSION
git add VERSION

sed_in_place -r -e "/@eclipse-che\/api|@eclipse-che\/workspace-client|@eclipse-che\/workspace-telemetry-client/!s/(\"@eclipse-che\/..*\": )(\".*\")/\1\"$VERSION\"/" package.json
npm --no-git-tag-version version --allow-same-version "${VERSION}"

echo "Copying source code to dockerfile directory"
cp -r "tests/e2e" "dockerfiles/e2e/e2e"

Expand All @@ -163,7 +169,7 @@ update_issue_template "${VERSION}" "${ISSUE_TEMPLATE_FILE}"
# tag the release
git tag "${VERSION}"
git push origin "${VERSION}"
COMMIT_MSG="[release] Release ${VERSION}"
COMMIT_MSG="chore: Release ${VERSION}"
git commit -asm "${COMMIT_MSG}"

# now update ${BASEBRANCH} to the new snapshot version
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "e2e",
"version": "1.0.0",
"name": "@eclipse-che/che-e2e",
"version": "7.39.0",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -49,7 +49,7 @@
"typescript": "3.9.9"
},
"dependencies": {
"@eclipse-che/api": "7.5.0-SNAPSHOT",
"@eclipse-che/api": "7.38.1",
"inversify": "5.0.1",
"reflect-metadata": "0.1.13"
},
Expand Down

0 comments on commit 062fec0

Please sign in to comment.