This commit is contained in:
Core 2022-08-03 16:50:38 +01:00
parent 81ff59d5dd
commit 7ef54ecad6
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -9,7 +9,7 @@ CURRENT_VERSION=$(node -p -e "require('./package.json').version")
if [[ $CIRCLE_BRANCH == "stable" || $GITHUB_REF_NAME == "stable" ]]; then if [[ $CIRCLE_BRANCH == "stable" || $GITHUB_REF_NAME == "stable" ]]; then
echo "This is a stable branch. Setting stable version." echo "This is a stable branch. Setting stable version."
NEW_VERSION=${CURRENT_VERSION/0/$COMMITSINCESTABLE} NEW_VERSION=${CURRENT_VERSION/0/$COMMITSINCESTABLE}
else elif [[ $COMMITSINCESTABLE -gt 0 ]]; then
echo "This is not a stable branch, but there are commits since the last stable release. Setting beta version." echo "This is not a stable branch, but there are commits since the last stable release. Setting beta version."
NEW_VERSION="${CURRENT_VERSION}-beta.${COMMITSINCESTABLE}" NEW_VERSION="${CURRENT_VERSION}-beta.${COMMITSINCESTABLE}"
fi fi