digicard-react-native-number-please
Version:
React Native number picker
51 lines (50 loc) โข 1.28 kB
YAML
version: 2.1
orbs:
node: circleci/node@4.7.0
jobs:
build-and-test:
executor: node/default
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: ๐ฆ Install packages
command: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn --ignore-engines
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: ๐งน Linting
command: yarn lint
- run:
name: ๐งช Testing
command: yarn test
publish:
executor:
name: node/default
steps:
- checkout
- run:
name: ๐ฆ Install packages
command: yarn install
- run:
name: ๐ง Building
command: yarn build
- run:
name: ๐ Publish to Github Package
command: yarn semantic-release || true
workflows:
build-and-test:
jobs:
- build-and-test
- publish:
requires:
- build-and-test
filters:
branches:
only: master