2019-05-21 21:47:14 +00:00
|
|
|
version: 2.1
|
2019-05-21 22:13:17 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2.1
|
|
|
|
build-and-deploy:
|
|
|
|
jobs:
|
|
|
|
- release:
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
|
|
|
tags:
|
|
|
|
only: /v[0-9]+(\.[0-9]+)*/
|
|
|
|
|
2019-05-21 22:08:46 +00:00
|
|
|
jobs:
|
2019-05-21 22:13:17 +00:00
|
|
|
release:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:8.11.3-browsers
|
2019-05-21 22:02:02 +00:00
|
|
|
steps:
|
2019-05-21 22:08:46 +00:00
|
|
|
- checkout
|
2019-05-21 22:13:17 +00:00
|
|
|
- run:
|
2019-05-21 22:14:24 +00:00
|
|
|
name: Set and authenticate with registry test
|
2019-05-21 22:13:17 +00:00
|
|
|
command: |
|
|
|
|
echo "${NPMRC}" | base64 --decode > ~/.npmrc
|
|
|
|
- run: yarn install --pure-lockfile --no-progress --non-interactive
|
|
|
|
- run:
|
|
|
|
name: "Lint"
|
|
|
|
command: |
|
|
|
|
echo "Running linter"
|
|
|
|
git config --global user.email "romancm@gmail.com"
|
|
|
|
git config --global user.name "romancm"
|
|
|
|
yarn lint
|