Skip to content

Commit

Permalink
fix(infrastructure): updated deploy steps to run with docker (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored Jun 25, 2018
1 parent 25f7071 commit a53fc7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This command will update the `package-lock.json` file and `package.json` files o
#### Commit Changes

```
git add packages/ package-lock.json
git add packages/ package-lock.json lerna.json
git commit -m "chore: Publish"
git add CHANGELOG.md
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"fix": "eslint --fix packages test",
"lint": "eslint packages test",
"pretest": "npm run lint && npm stop && ./test/screenshot/start.sh && sleep 90s",
"test": "npm run test:unit && npm run test:image-diff",
"test": "npm run test:unit && npm run test:screenshots",
"posttest": "npm stop && istanbul report --root coverage text-summary && istanbul check-coverage --lines 95 --statements 95 --branches 95 --functions 95",
"postinstall": "lerna bootstrap",
"test:watch": "karma start karma.local.js --auto-watch",
"test:unit": "NODE_ENV=test karma start karma.local.js --single-run",
"test:unit-ci": "karma start karma.ci.js --single-run",
"test:image-diff": "MDC_COMMIT_HASH=$(git rev-parse --short HEAD) MDC_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) mocha --compilers js:babel-core/register --ui tdd --timeout 90000 test/screenshot/diff-suite.js",
"test:screenshots": "docker run -it --rm --cap-add=SYS_ADMIN -e MDC_GCLOUD_SERVICE_ACCOUNT_KEY=\"${MDC_GCLOUD_SERVICE_ACCOUNT_KEY}\" mdcreact/screenshots /bin/sh -c 'git checkout master; git pull; npm i; /home/pptruser/material-components-web-react/test/screenshot/start.sh; sleep 200s; npm run test:image-diff'",
"upload:screenshots": "node ./test/screenshot/upload-screenshots.js"
},
"config": {
Expand Down
6 changes: 3 additions & 3 deletions scripts/release/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#

# Extract repo version from updated lerna.json
REPO_VERSION=$(grep 'version' lerna.json | sed 's/ *"version": "//' | sed 's/",//')
REPO_VERSION=$(grep 'version' lerna.json | sed 's/ *"version": "//' | sed 's/"//')
SEMVER_TAG="v$REPO_VERSION"
log "Tagging repo using semver tag $SEMVER_TAG"
echo "Tagging repo using semver tag $SEMVER_TAG"
git tag $SEMVER_TAG -m "Material Components for React release $SEMVER_TAG"

log "Done! You should now git push to master and git push --tags"
echo "Done! You should now git push to master and git push --tags"

0 comments on commit a53fc7d

Please sign in to comment.