react-native-material-ui
Version:
React Native Material Design Components
85 lines (75 loc) • 1.67 kB
YAML
version: 2
# Used Workspace
workspace:
~/mui
# Config for node
node_config:
working_directory:
docker:
- image: circleci/node:8
# Key to cache gradle dependecies
yarn_key:
yarn-cache-{{ checksum "yarn.lock" }}
jobs:
install-dependencies:
<<:
steps:
- checkout
- attach_workspace:
at:
- restore_cache:
key:
- run:
name: Intal yarn dependencies
command: yarn
- save_cache:
key:
paths: node_modules
- persist_to_workspace:
root: .
paths: .
lint:
<<:
steps:
- attach_workspace:
at:
- run:
name: Lint
command: yarn lint
test:
<<:
steps:
- attach_workspace:
at:
- run:
name: Jest
command: yarn test
publish:
<<:
steps:
- attach_workspace:
at:
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/mui/.npmrc
- run:
name: Publish
command: npm publish
workflows:
version: 2
test-and-deploy:
jobs:
- install-dependencies
- lint:
requires:
- install-dependencies
- test:
requires:
- install-dependencies
- publish:
requires:
- lint
- test
filters:
branches:
only: 'publish'