mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
* [ACS-4538] Make folder-rules secondary entry point of aca-content * [ACA-4538] Fix folder rules imports * [ACS-4538] Fix folder-rules unit tests * [ACS-4538] Fix package.json after folder rules transition * [ACS-4538] Remove duplicated peerDependency * [ACS-4538] Import fix
32 lines
600 B
Bash
Executable File
32 lines
600 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-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
|