copy testing in nodes

This commit is contained in:
Eugenio Romano
2020-07-17 12:20:07 +01:00
parent 90820a08df
commit c3b5d1734f
2 changed files with 8 additions and 1 deletions

View File

@@ -14,3 +14,10 @@ else
echo "Building testing for development" echo "Building testing for development"
npm run ng -- build testing || exit 1 npm run ng -- build testing || exit 1
fi fi
echo "====== Move to node_modules ======"
rm -rf ./node_modules/@alfresco/adf-testing/ && \
mkdir -p ./node_modules/@alfresco/adf-testing/ && \
cp -R ./lib/dist/testing/* ./node_modules/@alfresco/adf-testing/
npm run ng -- build testing || exit 1

View File

@@ -19,5 +19,5 @@ then
echo "Publishing on npm with tag $TAG_NPM" echo "Publishing on npm with tag $TAG_NPM"
npx @alfresco/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)" npx @alfresco/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"
else else
echo "PR Not need to release in NPM" echo "PR No need to release in NPM"
fi; fi;