This commit is contained in:
Core 2022-06-11 02:30:36 +01:00
parent 22635e52bc
commit c6b15eb917
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -5,7 +5,7 @@ COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
CURRENT_VERSION=$(node -p -e "require('./package.json').version") CURRENT_VERSION=$(node -p -e "require('./package.json').version")
CIRCLE_BRANCH="main" CIRCLE_BRANCH="main"
if [[ $CIRCLE_BRANCH == "main" && $COMMITSINCESTABLE -gt 0 ]]; then if [[ $CIRCLE_BRANCH == "main" && $COMMITSINCESTABLE -gt 0 ]]; then
NEW_VERSION="${CURRENT_VERSION}-alpha.${COMMITSINCESTABLE}" NEW_VERSION="${CURRENT_VERSION}-beta.${COMMITSINCESTABLE}"
else else
NEW_VERSION=${CURRENT_VERSION/0/$COMMITSINCESTABLE} NEW_VERSION=${CURRENT_VERSION/0/$COMMITSINCESTABLE}
fi fi