mirror of
https://github.com/gre/gl-react.git
synced 2026-01-18 16:16:59 +00:00
33 lines
502 B
Bash
Executable File
33 lines
502 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cd `dirname $0`/..
|
|
|
|
v=$1
|
|
|
|
if [ -z $v ]; then
|
|
echo "Usage: $0 <exact_version>" 1>&2;
|
|
exit 1;
|
|
fi;
|
|
|
|
echo "Setting cookbook version..."
|
|
cd cookbook
|
|
npm version $v
|
|
cd -
|
|
|
|
for pkg in packages/*/; do
|
|
echo "Setting $pkg version..."
|
|
cd $pkg;
|
|
npm version $v
|
|
cd -;
|
|
done;
|
|
|
|
npm run build
|
|
npm run flow
|
|
npm run test
|
|
|
|
echo "If you are happy with these changes, commit 'Prepare $v' and run:"
|
|
echo
|
|
echo "npm version $v && git push && git push --tags"
|
|
echo
|
|
echo "after that, run release.sh"
|