Skip to content

Commit cb2dd99

Browse files
committed
Update e2e publish scripts
1 parent 582ccf1 commit cb2dd99

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

tasks/e2e-behavior.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ yarn
7777
startLocalRegistry "$root_path"/tasks/verdaccio.yaml
7878

7979
# Publish the monorepo
80-
git clean -df
81-
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest
80+
publishToLocalRegistry
8281

8382
# ******************************************************************************
8483
# Now that we have published them, run all tests as if they were released.

tasks/e2e-installs.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ yarn
9999
startLocalRegistry "$root_path"/tasks/verdaccio.yaml
100100

101101
# Publish the monorepo
102-
git clean -df
103-
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest
102+
publishToLocalRegistry
104103

105104
echo "Create React App Version: "
106105
npx create-react-app --version

tasks/e2e-kitchensink-eject.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ yarn
8181
startLocalRegistry "$root_path"/tasks/verdaccio.yaml
8282

8383
# Publish the monorepo
84-
git clean -df
85-
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest
84+
publishToLocalRegistry
8685

8786
# ******************************************************************************
8887
# Now that we have published them, create a clean app folder and install them.

tasks/e2e-kitchensink.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ yarn
8181
startLocalRegistry "$root_path"/tasks/verdaccio.yaml
8282

8383
# Publish the monorepo
84-
git clean -df
85-
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest
84+
publishToLocalRegistry
8685

8786
# ******************************************************************************
8887
# Now that we have published them, create a clean app folder and install them.

tasks/e2e-simple.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ CI=true yarn test
138138
# Test local start command
139139
yarn start --smoke-test
140140

141-
git clean -df
142-
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest
141+
# Publish the monorepo
142+
publishToLocalRegistry
143143

144144
# ******************************************************************************
145145
# Install react-scripts prerelease via create-react-app prerelease.

tasks/local-registry.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ function stopLocalRegistry {
2929
# Kill Verdaccio process
3030
ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9
3131
}
32+
33+
function publishToLocalRegistry {
34+
git clean -df
35+
./tasks/publish.sh prerelease --yes --force-publish=* --no-git-tag-version --no-commit-hooks --no-push --exact --dist-tag=latest
36+
}

tasks/publish.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ if [ -z $CI ]; then
3131
fi
3232

3333
if [ -n "$(git status --porcelain)" ]; then
34-
echo "$(git diff)"
3534
echo "Your git status is not clean. Aborting.";
3635
exit 1;
3736
fi

0 commit comments

Comments
 (0)