Skip to content

Commit

Permalink
Build all packages together before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Sep 27, 2019
1 parent 0d3dfb4 commit 30e211d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -20,6 +20,7 @@ jobs:
- stage: Release
if: tag =~ ^v[0-9]
env: NPM_TAG=$([[ "$TRAVIS_TAG" == *-* ]] && echo "next" || echo "latest")
before_script: yarn build
script: echo "Releasing $TRAVIS_TAG to npm with tag \"$NPM_TAG\" ..."
before_deploy:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > "$HOME/.npmrc"
Expand All @@ -32,8 +33,6 @@ jobs:
- stage: Deploy Website
if: branch = website
env: PUBLIC_PATH=/react-router/
# The website is built as part of the deploy script,
# so we don't need to build it yet.
before_script: yarn build
script: echo "Deploying website to https://reacttraining.com$PUBLIC_PATH"
before_deploy:
Expand Down
1 change: 0 additions & 1 deletion packages/react-router-config/package.json
Expand Up @@ -25,7 +25,6 @@
"scripts": {
"build": "rollup -c",
"lint": "eslint modules",
"prepublishOnly": "yarn build",
"test": "jest"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/react-router-dom/package.json
Expand Up @@ -38,7 +38,6 @@
"scripts": {
"build": "rollup -c",
"lint": "eslint modules",
"prepublishOnly": "yarn build",
"test": "jest"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/react-router/package.json
Expand Up @@ -34,7 +34,6 @@
"scripts": {
"build": "rollup -c",
"lint": "eslint modules",
"prepublishOnly": "yarn build",
"test": "jest"
},
"peerDependencies": {
Expand Down

0 comments on commit 30e211d

Please sign in to comment.