From 30e211d38ba31b90060ba2ef228e8dfa2db4c7cd Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Fri, 27 Sep 2019 15:12:17 -0700 Subject: [PATCH] Build all packages together before publish --- .travis.yml | 3 +-- packages/react-router-config/package.json | 1 - packages/react-router-dom/package.json | 1 - packages/react-router/package.json | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 815536a115..70e1e85337 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" @@ -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: diff --git a/packages/react-router-config/package.json b/packages/react-router-config/package.json index 8604bb45f0..eef2b131b1 100644 --- a/packages/react-router-config/package.json +++ b/packages/react-router-config/package.json @@ -25,7 +25,6 @@ "scripts": { "build": "rollup -c", "lint": "eslint modules", - "prepublishOnly": "yarn build", "test": "jest" }, "peerDependencies": { diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 7900b192a4..db67c47e21 100644 --- a/packages/react-router-dom/package.json +++ b/packages/react-router-dom/package.json @@ -38,7 +38,6 @@ "scripts": { "build": "rollup -c", "lint": "eslint modules", - "prepublishOnly": "yarn build", "test": "jest" }, "peerDependencies": { diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 5333af3e59..8f8052dd7b 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -34,7 +34,6 @@ "scripts": { "build": "rollup -c", "lint": "eslint modules", - "prepublishOnly": "yarn build", "test": "jest" }, "peerDependencies": {