mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-4649] release workflow enhancements (#3043)
* move update versions of libs to shell script * unify packaging script * update package.json repository * change github token
This commit is contained in:
34
scripts/gh/npm-publish.sh
Executable file
34
scripts/gh/npm-publish.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/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-about'
|
||||
'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
|
31
scripts/gh/update-lib-versions.sh
Executable file
31
scripts/gh/update-lib-versions.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
|
||||
VERSION=$1
|
||||
DRY_RUN=$2
|
||||
|
||||
if [[ -z "$VERSION" ]]; then
|
||||
echo "Missing version parameter"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export PROJECTS=(
|
||||
'aca-about'
|
||||
'aca-content'
|
||||
'aca-folder-rules'
|
||||
'adf-office-services-ext'
|
||||
'aca-preview'
|
||||
'aca-shared'
|
||||
'aca-viewer'
|
||||
);
|
||||
|
||||
for PROJECT in ${PROJECTS[@]}
|
||||
do
|
||||
echo "Updating \"$PROJECT\" to version \"$VERSION\""
|
||||
|
||||
if [[ "$DRY_RUN" != "true" ]]; then
|
||||
PROJECT_DIR=$ROOT_DIR/projects/$PROJECT
|
||||
|
||||
(cd $PROJECT_DIR && npm version --allow-same-version --no-git-tag-version --force "$VERSION")
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user