mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
15 lines
326 B
Bash
Executable File
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
|