2020-07-20 18:07:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Force start from root folder
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-08-17 15:03:18 +02:00
|
|
|
version=$VERSION
|
|
|
|
distTag=$DIST_TAG
|
2020-07-20 18:07:48 +02:00
|
|
|
|
2022-08-17 15:03:18 +02:00
|
|
|
if [[ -z "$version" ]]; then
|
|
|
|
echo "Please enter the version you want to publish"
|
|
|
|
read -r version
|
|
|
|
fi
|
2020-07-20 18:07:48 +02:00
|
|
|
|
2022-08-17 15:03:18 +02:00
|
|
|
if [[ -z "$distTag" ]]; then
|
|
|
|
echo "Please enter the dist-tag you want to publish with"
|
|
|
|
read -r distTag
|
|
|
|
fi
|
2020-07-20 18:07:48 +02:00
|
|
|
|
2024-09-06 10:02:14 +02:00
|
|
|
## publish packages
|
2025-07-21 16:55:39 +03:00
|
|
|
yarn release --version "$version" --tag "$distTag" --git-commit false --git-tag false --changelog false --dry-run false "$@"
|