【发布时间】:2019-07-01 20:46:58
【问题描述】:
我的 CI/CD 是:git > cicleci > heroku
我正在使用circleci的建议配置(附在下面)
我在 circleci 中有合适的环境变量。
第一部分运行良好,但是,当我部署到 heroku 时,我可以看到来自开发者依赖项的警告,例如:
./src/hooks/myHook.js
Line 11: React Hook useEffect has a missing dependency: 'x'. Either include it or remove the dependency array react-hooks/exhaustive-deps
这让我觉得 React dev 正在运行。
谁能帮帮我?
version: 2
jobs:
build:
...
deploy:
docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run:
name: Deploy Master to Heroku
command: |
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master
workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master
【问题讨论】:
标签: heroku circleci circleci-2.0