MichalKinas 222f487e70
[ACS-4537] Make aca-about secondary entry of aca-content (#3170)
* break dependency on core module

* convert about to secondary entry

* Fixes after rebase

---------

Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
2023-05-05 17:00:19 +02:00

34 lines
649 B
Bash
Executable File

#!/usr/bin/env bash
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../.." && pwd )"
DIST_DIR="$ROOT_DIR/dist/@alfresco"
TAG=$1
DRY_RUN=$2
if [[ -z "$TAG" ]]; then
echo "Missing tag parameter"
exit 1
fi
export PROJECTS=(
'aca-content'
'aca-folder-rules'
'adf-office-services-ext'
'aca-preview'
'aca-shared'
'aca-viewer'
);
for PROJECT in ${PROJECTS[@]}
do
cd $DIST_DIR/$PROJECT
if [[ "$DRY_RUN" == "true" ]]; then
echo "[DRY RUN] Publishing \"$PROJECT\" with \"$TAG\" tag"
npm publish --dry-run --tag "$TAG"
else
echo "Publishing \"$PROJECT\" with \"$TAG\" tag"
npm publish --tag "$TAG"
fi
done