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

15 lines
326 B
Bash
Raw Normal View History

2023-02-27 11:19:31 +01:00
#!/bin/bash
2023-02-27 11:00:04 +01:00
set -e
2023-02-27 11:30:42 +01:00
CURRENT_VERSION=$(node -p "require('./package.json').version")
2023-02-27 11:19:31 +01:00
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