diff --git a/tasks/e2e-behavior.sh b/tasks/e2e-behavior.sh index 68f41d55034..31ab9991d20 100755 --- a/tasks/e2e-behavior.sh +++ b/tasks/e2e-behavior.sh @@ -77,8 +77,7 @@ yarn startLocalRegistry "$root_path"/tasks/verdaccio.yaml # Publish the monorepo -git clean -df -./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest +publishToLocalRegistry # ****************************************************************************** # Now that we have published them, run all tests as if they were released. diff --git a/tasks/e2e-installs.sh b/tasks/e2e-installs.sh index d31858d2ade..27577cdef0d 100755 --- a/tasks/e2e-installs.sh +++ b/tasks/e2e-installs.sh @@ -99,8 +99,7 @@ yarn startLocalRegistry "$root_path"/tasks/verdaccio.yaml # Publish the monorepo -git clean -df -./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest +publishToLocalRegistry echo "Create React App Version: " npx create-react-app --version diff --git a/tasks/e2e-kitchensink-eject.sh b/tasks/e2e-kitchensink-eject.sh index d614a767d7e..877fdf60f12 100755 --- a/tasks/e2e-kitchensink-eject.sh +++ b/tasks/e2e-kitchensink-eject.sh @@ -81,8 +81,7 @@ yarn startLocalRegistry "$root_path"/tasks/verdaccio.yaml # Publish the monorepo -git clean -df -./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest +publishToLocalRegistry # ****************************************************************************** # Now that we have published them, create a clean app folder and install them. diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index dfb2527e22f..30f0b4a0186 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -81,8 +81,7 @@ yarn startLocalRegistry "$root_path"/tasks/verdaccio.yaml # Publish the monorepo -git clean -df -./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest +publishToLocalRegistry # ****************************************************************************** # Now that we have published them, create a clean app folder and install them. diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index bf37a665901..30f45c76834 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -138,8 +138,8 @@ CI=true yarn test # Test local start command yarn start --smoke-test -git clean -df -./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest +# Publish the monorepo +publishToLocalRegistry # ****************************************************************************** # Install react-scripts prerelease via create-react-app prerelease. diff --git a/tasks/local-registry.sh b/tasks/local-registry.sh index 26cf896bf43..715380a8a85 100644 --- a/tasks/local-registry.sh +++ b/tasks/local-registry.sh @@ -29,3 +29,8 @@ function stopLocalRegistry { # Kill Verdaccio process ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9 } + +function publishToLocalRegistry { + git clean -df + ./tasks/publish.sh prerelease --yes --force-publish=* --no-git-tag-version --no-commit-hooks --no-push --exact --dist-tag=latest +} diff --git a/tasks/publish.sh b/tasks/publish.sh index 41c7817faa3..802d10cf518 100755 --- a/tasks/publish.sh +++ b/tasks/publish.sh @@ -31,7 +31,6 @@ if [ -z $CI ]; then fi if [ -n "$(git status --porcelain)" ]; then - echo "$(git diff)" echo "Your git status is not clean. Aborting."; exit 1; fi