1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/.github/update_own_version.sh
2023-02-27 11:30:42 +01:00

15 lines
326 B
Bash
Executable File

#!/bin/bash
set -e
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo $CURRENT_VERSION
if [[ $CURRENT_VERSION == *beta* ]]; then
echo "Current beta update"
npm version prerelease --preid=beta --ignore-scripts
else
echo "Next minor beta update"
npm version preminor --preid=beta --ignore-scripts
fi