Fix angular 13 migration (#7754)

* Fix angular 13 migration

* Add prerelease alpha versions deprecation support

* Another fix
This commit is contained in:
Popovics András
2022-08-09 15:30:46 +02:00
committed by GitHub
parent a609dbb131
commit 58660b0395
4 changed files with 19 additions and 3 deletions

View File

@@ -127,6 +127,9 @@ jobs:
- stage: "Build Demo shell"
name: "Demo Shell & Storybook :Build && dockerize"
before_script:
- NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx run cli:build --prod
- ./scripts/build/build-cli.sh
script:
# Build Demo shell & Storybook for production docker"
- NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --configuration production

View File

@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -f
# By default NEXT_VERSION is set to the current version, so we can change only the aplha suffix as well
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NEXT_VERSION=`node -p "require('$DIR/../package.json')".version;`;
eval EXEC_PATCH=false
eval EXEC_MAJOR=false
eval EXEC_MINOR=false

View File

@@ -50,7 +50,7 @@ for PACKAGE in ${projects[@]}
do
echo "@alfresco/$PACKAGE"
for VERSION_TO_DEPRECATE in $(npm view "@alfresco/$PACKAGE" versions --json | jq -r '.[] | select( . | contains("-")) | select( . | contains("'$VERSION'"))')
for VERSION_TO_DEPRECATE in $(npm view "@alfresco/$PACKAGE" versions --json | jq -r '.[] | select( . | match("-[0-9].*$") ) | select( . | contains("'$VERSION'"))')
do
deprecated=$(npm view "@alfresco/$PACKAGE@$VERSION_TO_DEPRECATE" -json | jq '.deprecated')

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
VERSION_IN_PACKAGE_JSON=`node -p "require('$DIR/../package.json')".version;`;
eval JS_API=true
eval GNU=false
eval DIFFERENT_JS_API=false
@@ -47,8 +49,15 @@ last_alpha_mode() {
}
next_alpha_mode() {
echo "====== Auto find next ALPHA version ===== ${SEMANTIC} "
VERSION=$(./next_version.sh -${SEMANTIC} -alpha)
# If we are creating a new alpha for a prerelease, we need to simply call it with -alpha
if [[ $VERSION_IN_PACKAGE_JSON =~ [0-9]*\.[0-9]*\.[0-9]*-.* ]]; then
SEMANTIC_PARAM="";
else
SEMANTIC_PARAM="-${SEMANTIC}";
fi
echo "====== Auto find next ALPHA version ===== ${SEMANTIC_PARAM} "
VERSION=$(./next_version.sh ${SEMANTIC_PARAM} -alpha)
echo "====== version lib ${VERSION} ====="
JS_API=false