From 5f696f72505309836a6b791b7c88fcf5ce3fb747 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Mon, 18 Mar 2019 11:00:27 -0700 Subject: [PATCH 1/4] feat: add semantic-release stuff --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e5745886..2e1695c9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,3 +7,12 @@ jobs: - checkout - run: npm install - run: npm test + + release: + docker: + - image: circleci/node:8 + steps: + - checkout + - run: npm install + - run: npm run build + - run: npx semantic-release From 4a88f5b7e8378bf9a1308896ecdff5498759a07e Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Mon, 18 Mar 2019 11:15:59 -0700 Subject: [PATCH 2/4] fix: update sem rel --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e1695c9..824a8f8a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,8 @@ version: 2 jobs: - build: + tests: docker: - - image: circleci/node:10.11.0 + - image: circleci/node:10 steps: - checkout - run: npm install @@ -10,7 +10,7 @@ jobs: release: docker: - - image: circleci/node:8 + - image: circleci/node:10 steps: - checkout - run: npm install From 94da49813733b41f2201853361c690c02ad1485e Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Mon, 18 Mar 2019 11:18:55 -0700 Subject: [PATCH 3/4] feat: add badge --- .circleci/config.yml | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 824a8f8a..faef6d5f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2 jobs: - tests: + test: docker: - image: circleci/node:10 steps: diff --git a/README.md b/README.md index 5d04423d..333a3517 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,4 @@ Collection of example OpenRPC service definition files [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=open-rpc/examples)](https://dependabot.com) +[![CircleCI](https://circleci.com/gh/open-rpc/examples.svg?style=svg)](https://circleci.com/gh/open-rpc/examples) From 2216d454a99f43bba53c071e86418366e07c7fb7 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Mon, 18 Mar 2019 11:28:57 -0700 Subject: [PATCH 4/4] feat: add workflow --- .circleci/config.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index faef6d5f..5e0776cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,14 @@ jobs: - run: npm install - run: npm test + build: + docker: + - image: circleci/node:10 + steps: + - checkout + - run: npm install + - run: npm run build + release: docker: - image: circleci/node:10 @@ -16,3 +24,18 @@ jobs: - run: npm install - run: npm run build - run: npx semantic-release + +workflows: + version: 2 + build_and_test: + jobs: + - test + - build + - hold: + type: approval + requires: + - test + - build + - release: + requires: + - hold