strapi/scripts/publish.sh

24 lines
404 B
Bash
Raw Normal View History

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