Skip to content

Commit

Permalink
🔨 [#58] Added bump script.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeribekker committed Oct 13, 2023
1 parent b7a2eaa commit 390c11a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bin/bumpversion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
#
# Script to bump the version. Arguments are forwarded to bumpversion.
#
# Usage:
#
# ./bin/bumpversion.sh minor|patch|pre|build
#

set -eu -o pipefail

toplevel=$(git rev-parse --show-toplevel)
cd $toplevel

# Ensure a virtualenv is active.
if [ -z $VIRTUAL_ENV ]; then
echo "VIRTUAL_ENV envvar is not set, you must activate your virtualenv before running this script."
exit 1
fi

# Forward all arguments to bumpversion binary
bumpversion "$@"

# Run npm install to update the package-lock.json version number
npm i

0 comments on commit 390c11a

Please sign in to comment.