Skip to content

Commit

Permalink
Merge pull request #1 from matzkoh/topic-ci
Browse files Browse the repository at this point in the history
Configure CircleCi
  • Loading branch information
matzkoh authored Mar 18, 2019
2 parents 4acf1e2 + 54143b6 commit a87739d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
orbs:
repo:
executors:
default:
docker:
- image: circleci/node:10

commands:
test:
steps:
- checkout
- restore_cache:
keys:
- &cache_key npm_cache-{{ .Branch }}
- npm_cache-

- run:
name: Install Dependencies
command: npm ci

- save_cache:
key: *cache_key
paths:
- ~/.npm

- run:
name: Run Test
command: npm test

deploy:
steps:
- run:
name: Deploy
command: npx semantic-release

jobs:
default:
executor: default
steps:
- test

master:
executor: default
steps:
- test
- deploy

version: 2.1

workflows:
main:
jobs:
- repo/default:
filters:
branches:
ignore:
- master

- repo/master:
filters:
branches:
only:
- master
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Prettier plugin for package.json

[![CircleCI](https://circleci.com/gh/matzkoh/prettier-plugin-packagejson.svg?style=shield)](https://circleci.com/gh/matzkoh/prettier-plugin-packagejson)
[![Renovate](https://badges.renovateapi.com/github/matzkoh/prettier-plugin-packagejson)](https://renovatebot.com/)

## Installation

```bash
Expand Down

0 comments on commit a87739d

Please sign in to comment.