jellyfin-web/bump_version

30 lines
567 B
Plaintext
Raw Normal View History

2020-03-30 19:31:14 +00:00
#!/usr/bin/env bash
# bump_version - increase the shared version and generate changelogs
set -o errexit
set -o pipefail
set -o xtrace
2020-03-30 19:31:14 +00:00
usage() {
echo -e "bump_version - increase the shared version"
2020-03-30 19:31:14 +00:00
echo -e ""
echo -e "Usage:"
echo -e " $ bump_version <new_version>"
}
if [[ -z $1 ]]; then
usage
exit 1
fi
new_version="$1"
new_version_sed="$( cut -f1 -d'-' <<<"${new_version}" )"
2021-09-06 20:26:25 +00:00
# Bump the NPM version
npm --no-git-tag-version --allow-same-version version v${new_version_sed}
2020-03-30 19:31:14 +00:00
# Stage the changed files for commit
git add .
git status -v