Skip to content

Commit

Permalink
Update e2e publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ianschmitz committed May 1, 2019
1 parent 582ccf1 commit cb2dd99
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions tasks/e2e-behavior.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions tasks/e2e-installs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tasks/e2e-kitchensink-eject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tasks/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions tasks/local-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 0 additions & 1 deletion tasks/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb2dd99

Please sign in to comment.