message: feat(circleci): adding nightly releases
diff: @@ -51,6 +51,31 @@ jobs:
  echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
  yarn lerna publish --canary minor --dist-tag canary --no-push --no-git-tag-version --yes
  + release_nightly:
  + docker:
  + - image: circleci/node:10.15-browsers
  + working_directory: ~/repo
  + steps:
  + - checkout
  + - run:
  + name: Install yarn
  + command: |
  + curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
  + # Reference:
  + # https://circleci.com/docs/2.0/env-vars/#example-configuration-of-environment-variables
  + echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> $BASH_ENV
  + - run:
  + name: Install dependencies
  + command: yarn install --offline --frozen-lockfile
  + - run:
  + name: Build packages
  + command: yarn build
  + - run:
  + name: Publish nightly packages
  + command: |
  + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
  + yarn lerna publish --canary minor --dist-tag nightly --no-push --no-git-tag-version --force-publish=* --yes
  +
  artifacts:
  docker:
  - image: circleci/node:10.15-browsers
  @@ -108,3 +133,13 @@ workflows:
  branches:
  only:
  - master
  + nightly:
  + triggers:
  + - schedule:
  + cron: "0 0 * * *"
  + filters:
  + branches:
  + only:
  + - master
  + jobs:
  + - release_nightly
  