2020-01-16 14:51:55 +01:00
|
|
|
#!/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"
|
2020-01-16 14:51:55 +01:00
|
|
|
read -r version
|
2020-01-07 17:13:21 +01:00
|
|
|
|
|
|
|
# publish packages
|
2020-06-15 17:10:56 +02:00
|
|
|
./node_modules/.bin/lerna publish --no-push --force-publish --dist-tag latest --exact "$version"
|
2020-01-07 17:13:21 +01:00
|
|
|
|
2022-08-08 15:06:02 +02: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
|