diff --git a/.eslintrc.json b/.eslintrc.json index e109232932f..07ca3b9503b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -7,17 +7,17 @@ "plugin:jsx-a11y/recommended", "prettier" ], + "settings": { + "react": { + "version": "16.4.2" + } + }, "globals": { "jest": true, "BASE_PATH_NAME": true, "PACKAGE_VERSION": true }, - "plugins": [ - "prettier", - "react", - "jest", - "jsx-a11y" - ], + "plugins": ["prettier", "react", "jest", "jsx-a11y"], "env": { "es6": true, "browser": true, diff --git a/.travis.yml b/.travis.yml index 1c420a55aef..f05662cd518 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ deploy: branch: master - provider: script - script: utils/travis/publish-packages.js + script: yarn lerna publish from-git --no-verify-access --yes skip_cleanup: true on: branch: master diff --git a/utils/travis/publish-packages.js b/utils/travis/publish-packages.js deleted file mode 100755 index 6a376ff18a7..00000000000 --- a/utils/travis/publish-packages.js +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env node - -/** - * Copyright Zendesk, Inc. - * - * Use of this source code is governed under the Apache License, Version 2.0 - * found at http://www.apache.org/licenses/LICENSE-2.0. - */ - -/* eslint-disable no-console */ - -const path = require('path'); -const childProcess = require('child_process'); -const lernaPath = path.resolve(__dirname, '..', '..', 'node_modules', '.bin', 'lerna'); -const lernaConfig = require(path.resolve(__dirname, '..', '..', 'lerna.json')); -const LERNA_PUBLISH_MESSAGE = lernaConfig.command.version.message; - -/** - * Only perform publish if commit message is Lerna created - */ -if (process.env.TRAVIS_COMMIT_MESSAGE.indexOf(LERNA_PUBLISH_MESSAGE) > -1) { - const lernaExecPublish = childProcess.spawn(lernaPath, ['--since=HEAD^', 'exec', 'npm publish']); - - lernaExecPublish.stdout.on('data', data => { - process.stdout.write(data); - }); - - lernaExecPublish.stderr.on('data', data => { - process.stderr.write(data); - }); -} else { - console.log(`$TRAVIS_COMMIT_MESSAGE of "${process.env.TRAVIS_COMMIT_MESSAGE}" is not valid`); -}