Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup DevOps #3

Merged
merged 1 commit into from
May 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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