diff --git a/.circleci/config.yml b/.circleci/config.yml index e14ee5f98..6c2af6db3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,6 +17,8 @@ jobs: - checkout - run: node -v - run: npm -v + - run: git config --global user.email zy410419243@gmail.com + - run: git config --global user.name zy410419243 - run: npm install - run: command: | @@ -40,6 +42,15 @@ jobs: - *attach_workspace - run: npm run codecov - run: bash <(curl -s https://codecov.io/bash) -t cdf5917e-b38d-4156-a9d6-6a405484b930 + deploy: + <<: *container_config + steps: + - checkout + - *attach_workspace + - run: + name: deploy + when: on_success + command: npm run deploy workflows: version: 2 @@ -55,3 +66,9 @@ workflows: - lint: requires: - setup + - deploy: + requires: + - test + filters: + branches: + only: master