Skip to content

Commit

Permalink
chore(ci): add canary publishing steps (carbon-design-system#2988)
Browse files Browse the repository at this point in the history
* chore(ci): add canary publishing steps

* chore(ci): change filter key to filters

* Update config.yml
  • Loading branch information
joshblack authored Jun 10, 2019
1 parent 77b6197 commit 30d7f38
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,43 @@ jobs:
-f manifest.yml \
--delete-old-apps
release:
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 canary packages
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
yarn lerna publish --canary minor --dist-tag canary --no-push --no-git-tag-version --yes
workflows:
version: 2
main:
jobs:
- system
- release:
requires:
- system
filters:
branches:
only:
- master
- deploy:
requires:
- system
Expand Down

0 comments on commit 30d7f38

Please sign in to comment.