all-contributors-cli/.circleci/config.yml
Pierre Huyghe deb6be93f0
refactor: add tbody to contributors table (#307)
* refactor: add tbody to contributors table

* chore(node): bump version to lts

* fix(html): add correct indentation

* test(url): fix bind error message

Co-authored-by: Pierre Huyghe <phuyghe.externe@bedrockstreaming.com>
2022-09-07 16:19:41 +08:00

75 lines
1.5 KiB
YAML

version: 2.1
docker_defaults: &docker_defaults
docker:
- image: cimg/node:16.17.0
commands:
prep_env:
description: Prepares environment with cache
steps:
- checkout:
path: ~/repo
- restore_cache:
name: Restore node_modules cache
key:
all-contributors-cli-v2-{{ checksum "package.json" }}-{{ .Branch }}
save_env_cache:
description: Saves environment cache
steps:
- save_cache:
name: Save node_modules cache
key:
all-contributors-cli-v2-{{ checksum "package.json" }}-{{ .Branch }}
paths:
- node_modules/
jobs:
node_modules:
<<: *docker_defaults
working_directory: ~/repo
steps:
- prep_env
- run: yarn install
- save_env_cache
validate:
<<: *docker_defaults
working_directory: ~/repo
steps:
- prep_env
- run: yarn validate
- persist_to_workspace:
root: ./
paths:
- dist
- coverage
deploy:
<<: *docker_defaults
working_directory: ~/repo
steps:
- prep_env
- attach_workspace:
at: ./
- run: yarn codecov
- run: yarn semantic-release
workflows:
version: 2
validate_and_deploy:
jobs:
- node_modules
- validate:
requires:
- node_modules
- deploy:
requires:
- validate
filters:
branches:
only:
- master
experimental:
notify:
branches:
only:
- master