strapi/scripts/publish.sh
Alexandre Bodin e45a55cc8f Update publish script
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-26 14:48:00 +02:00

24 lines
392 B
Bash
Executable File

#!/bin/bash
# Force start from root folder
cd "$(dirname "$0")/.."
set -e
version=""
echo "Please enter the version you want to publish"
read -r version
# publish packages
./node_modules/.bin/lerna publish --no-push --dist-tag latest --exact "$version"
# push master branch
git push origin master
# push tag
git push origin v"$version"
# run changelog cli
npx @sclt/program-changelog