ci: Fix CircleCI.
This commit is contained in:
parent
7f73ab7935
commit
069aa02f32
|
@ -1,6 +1,6 @@
|
|||
version: 2
|
||||
jobs:
|
||||
build_and_test:
|
||||
build-and-test:
|
||||
docker:
|
||||
- image: 'circleci/node:latest'
|
||||
steps:
|
||||
|
@ -24,28 +24,28 @@ jobs:
|
|||
- ~/.cache/yarn
|
||||
key: yarn-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- project
|
||||
root: .
|
||||
paths:
|
||||
- project
|
||||
release:
|
||||
docker:
|
||||
- image: 'circleci/node:latest'
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
at: .
|
||||
- run:
|
||||
name: Release
|
||||
command: yarn semantic-release
|
||||
name: Release
|
||||
command: yarn semantic-release
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build_test_publish:
|
||||
build-test-publish:
|
||||
jobs:
|
||||
- build_and_test
|
||||
- build-and-test
|
||||
- release:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
requires:
|
||||
- build_and_test
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
requires:
|
||||
- build_and_test
|
||||
|
|
Loading…
Reference in New Issue