Skip to content

Instantly share code, notes, and snippets.

@acdvorak
Created April 17, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acdvorak/835a2f5f9535476def454a501bd6a117 to your computer and use it in GitHub Desktop.
Save acdvorak/835a2f5f9535476def454a501bd6a117 to your computer and use it in GitHub Desktop.
diff --git a/package.json b/package.json
index 34d1f3ecc..1f700e74a 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
"lint": "npm-run-all --parallel lint:*",
"postinstall": "lerna bootstrap",
"pretest": "npm run lint",
- "test": "npm run test:unit && npm run test:closure && npm run test:dependency && npm run build && npm run clean",
+ "test": "echo TEST",
"posttest": "istanbul report --root coverage text-summary && istanbul check-coverage --lines 95 --statements 95 --branches 95 --functions 95",
"screenshot:serve": "node test/screenshot/run-static-server.js",
"screenshot:upload-assets": "node test/screenshot/run-upload-assets.js",
diff --git a/scripts/post-release.sh b/scripts/post-release.sh
index d41ecbfa8..980142f78 100755
--- a/scripts/post-release.sh
+++ b/scripts/post-release.sh
@@ -31,25 +31,25 @@ PACKAGE_DIRS=$(git status --porcelain=v1 packages/*/package.json | sed 's/^ M //
function npm_publish() {
log "Publishing $1..."
- npm publish "$1" --tag $SEMVER_TAG
+ echo npm publish "$1" --tag $SEMVER_TAG
}
log "Committing new package versions..."
-git add lerna.json packages/*/package.json
-git commit -m "chore: Publish"
+echo git add lerna.json packages/*/package.json
+echo git commit -m "chore: Publish"
echo
log "Committing changelog..."
-git add CHANGELOG.md
-git commit -m "docs: Update CHANGELOG.md"
+echo git add CHANGELOG.md
+echo git commit -m "docs: Update CHANGELOG.md"
echo
log "Tagging repo using semver tag $SEMVER_TAG..."
-git tag $SEMVER_TAG -m "Material Components for the Web release $SEMVER_TAG"
+echo git tag $SEMVER_TAG -m "Material Components for the Web release $SEMVER_TAG"
echo
log "Pushing commits to GitHub..."
-git push && git push --tags
+echo git push && echo git push --tags
echo
log "Publishing to NPM..."
@@ -59,7 +59,7 @@ echo "$PACKAGE_DIRS" | xargs -I '{}' /bin/sh -c 'npm_publish "$@"' _ '{}'
echo
log "Deploying catalog server..."
-MDC_ENV=development npm run build:demos && gcloud app deploy
+MDC_ENV=development echo npm run build:demos && echo gcloud app deploy
echo
log "Post-release steps done! $SEMVER_TAG has been published to NPM, GitHub, and the catalog server"
diff --git a/scripts/pre-release.sh b/scripts/pre-release.sh
index 31c45d7ac..11825468f 100755
--- a/scripts/pre-release.sh
+++ b/scripts/pre-release.sh
@@ -34,8 +34,8 @@ function prompt() {
log "Running pre-flight sanity checks..."
log "Checking out 'master' and pulling latest commits from GitHub..."
-git checkout master
-git pull --tags
+echo git checkout master
+echo git pull --tags
LOCAL_CHANGE_COUNT=$(git status --porcelain=v1 | wc -l)
if [[ $LOCAL_CHANGE_COUNT -gt 0 ]]; then
git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment