fix: release on circleci (#3775)

Moves semantic releasing from TravisCI to CircleCI
This commit is contained in:
Rhys Arkins 2019-05-21 12:41:05 +02:00 committed by GitHub
parent 2fd6bd7126
commit bc93a4eaa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 46 deletions

View file

@ -55,8 +55,25 @@ jobs:
command: | command: |
bash <(curl -s https://codecov.io/bash) bash <(curl -s https://codecov.io/bash)
release:
docker:
- image: node:10.15.3@sha256:2939bbf1f233c88ed1bc5fec51d4e6ac59beeb397b6b81371c4c576e4606de19
steps:
- checkout
- run: yarn install
- run: yarn build
- run: yarn semantic-release
- run: curl -X POST -d '{}' $NETLIFY_DEPLOY_WEBHOOK
workflows: workflows:
version: 2 version: 2
build_and_test: test_and_release:
jobs: jobs:
- test_node_10 - test_node_10
- release:
requires:
- test_node_10
filters:
branches:
only:
- master

View file

@ -1,45 +0,0 @@
notifications:
email: false
language: node_js
node_js:
- 'lts/dubnium'
sudo: false
branches:
only:
- master
- v16
if: tag IS blank
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
- python --version
- git --version
install:
- yarn install --frozen-lockfile
- pip install --user -r requirements.txt
cache:
yarn: true
directories:
- '.cache'
- '.eslintcache'
- 'node_modules'
script:
- yarn lint
- yarn test-schema
- yarn build
deploy:
provider: script
script: curl -X POST -d '{}' $NETLIFY_DEPLOY_WEBHOOK && yarn semantic-release
skip_cleanup: true
on:
branch: master