2018-09-02 13:14:29 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:8-browsers
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: yarn install
|
2018-09-30 23:02:10 +00:00
|
|
|
- run: yarn bootstrap
|
2018-12-05 20:45:50 +00:00
|
|
|
- run: yarn lint
|
2018-09-02 13:14:29 +00:00
|
|
|
- run: yarn test
|
2018-10-02 12:49:39 +00:00
|
|
|
publish-stable:
|
|
|
|
docker:
|
2018-10-22 11:05:05 +00:00
|
|
|
- image: circleci/node:10
|
2018-10-02 12:49:39 +00:00
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
|
|
- checkout
|
2018-10-02 13:54:20 +00:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn bootstrap
|
2018-10-02 12:49:39 +00:00
|
|
|
- run:
|
|
|
|
name: Saving Authentication Information
|
|
|
|
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
2018-10-02 13:54:20 +00:00
|
|
|
# - run:
|
|
|
|
# name: Publishing to Stable Channel
|
2018-10-02 14:54:36 +00:00
|
|
|
# command: yarn run lerna publish from-git --yes
|
2018-10-02 12:49:39 +00:00
|
|
|
|
|
|
|
publish-canary:
|
|
|
|
docker:
|
2018-10-22 11:05:05 +00:00
|
|
|
- image: circleci/node:10
|
2018-10-02 12:49:39 +00:00
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
|
|
- checkout
|
2018-10-02 13:54:20 +00:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn bootstrap
|
2018-10-02 12:49:39 +00:00
|
|
|
- run:
|
|
|
|
name: Saving Authentication Information
|
|
|
|
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
|
|
|
- run:
|
|
|
|
name: Publishing to Canary Channel
|
2018-10-02 14:54:36 +00:00
|
|
|
command: yarn run lerna publish from-git --npm-tag canary --yes
|
2018-10-02 12:49:39 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
unscheduled:
|
|
|
|
jobs:
|
|
|
|
- build:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- publish-canary:
|
|
|
|
requires:
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /^.*canary.*($|\b)/
|
2018-10-02 14:06:49 +00:00
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
2018-10-02 12:49:39 +00:00
|
|
|
- publish-stable:
|
|
|
|
requires:
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
tags:
|
2018-10-02 14:06:49 +00:00
|
|
|
only: /^(\d+\.)?(\d+\.)?(\*|\d+)$/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|