Skip to content

Commit

Permalink
ci: Enable auto-releases with Lerna (#31)
Browse files Browse the repository at this point in the history
* Update travis config.

* Update deps.

* Add some debugging.

* More config debugging.

* Remove extra lint step.

* Fix readme image.

* Move to before deploy.

* Only show master branch.

* Add lerna logging.
  • Loading branch information
milesj committed Apr 18, 2019
1 parent 129e5c7 commit f7b1799
Show file tree
Hide file tree
Showing 5 changed files with 515 additions and 558 deletions.
38 changes: 25 additions & 13 deletions .travis.yml
Expand Up @@ -9,7 +9,8 @@ matrix:
fast_finish: true
jobs:
include:
- name: Danger
- stage: Tests
name: Danger
script: npx danger ci --use-github-checks
node_js: '10'
- name: Test @ 8
Expand All @@ -24,16 +25,27 @@ jobs:
- name: Lint @ 10
script: npm run lint:errors
node_js: '10'
deploy:
- provider: script
script: npm run deploy:ghp
skip_cleanup: true
on:
branch: master
- stage: Publish Storybook
script: skip
node_js: '10'
# - provider: script
# script: npm run deploy:release
# skip_cleanup: true
# on:
# branch: master
# node_js: '10'
if: branch = master
deploy:
provider: script
script: npm run deploy:ghp
skip_cleanup: true
on:
branch: master
- stage: Release Packages
script: skip
node_js: '10'
if: branch = master
before_deploy:
- git config --global user.name ${GITHUB_USER}
- git config --global user.email ${GITHUB_EMAIL}
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: script
script: npm run deploy:release -- --loglevel silly
skip_cleanup: true
on:
branch: master
4 changes: 2 additions & 2 deletions README.md
@@ -1,9 +1,9 @@
<div align="center">
<img src="https://raw.githubusercontent.com/airbnb/lunar/storybook/.storybook/images/lunar-logo-small.png" />
<img src="https://raw.githubusercontent.com/airbnb/lunar/master/.storybook/images/lunar-logo-small.png" />

# Lunar

[![Build Status](https://travis-ci.com/airbnb/lunar.svg)](https://travis-ci.com/airbnb/lunar)
[![Build Status](https://travis-ci.com/airbnb/lunar.svg?branch=master)](https://travis-ci.com/airbnb/lunar)

React toolkit and design language for Airbnb open source and internal projects. It is _not_ for the
general public.
Expand Down

0 comments on commit f7b1799

Please sign in to comment.