Files
rive-react/scripts/bump_version.sh

10 lines
344 B
Bash
Executable File

#!/bin/bash
# Bumps the version of a single npm module found in the current working
# directory. Call bump_version.sh from the path with package.json in it.
set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
NPM_VERSIONS=`npm show rive-react versions`
node $SCRIPT_DIR/nextVersion.js "$NPM_VERSIONS" `pwd`