strapi/scripts/publish.sh

25 lines
568 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=$VERSION
distTag=$DIST_TAG
2020-01-07 17:13:21 +01:00
if [[ -z "$version" ]]; then
echo "Please enter the version you want to publish"
read -r version
fi
if [[ -z "$distTag" ]]; then
echo "Please enter the dist-tag you want to publish with"
read -r distTag
fi
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
yarn release --version "$version" --tag "$distTag" --dry-run false "$@"