strapi/scripts/publish.sh

26 lines
552 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/nx run-many --target=clean --nx-ignore-cycles
2024-01-12 12:48:45 +01:00
./node_modules/.bin/nx run-many --target=build --nx-ignore-cycles --skip-nx-cache
./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
2023-09-20 16:44:47 +02:00
git push origin HEAD
2020-01-07 17:13:21 +01:00
# push tag
git push origin v"$version"
# run changelog cli
npx @sclt/program-changelog