From 0da0675f2ea518c53b789ccf220798828301eccb Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Thu, 27 Dec 2018 10:08:01 -0500 Subject: [PATCH] chore: upgrade to circle v2 for #14 --- circle.yml | 48 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/circle.yml b/circle.yml index b6bd548..d20ad5b 100644 --- a/circle.yml +++ b/circle.yml @@ -1,12 +1,36 @@ -machine: - node: - version: "8" -test: - override: - - npm test - post: - - ./refs.sh || true - # try to get around a crash - # https://github.com/bahmutov/condition-circle/issues/6#issuecomment-351542333 - - npm i semantic-release@11.0.2 - - DEBUG=condition npx semantic-release || true +version: 2 +jobs: + build: + working_directory: ~/repo + docker: + - image: circleci/node:10 + steps: + - checkout + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: install-npm-wee + command: npm install + # try to get around a crash + # https://github.com/bahmutov/condition-circle/issues/6#issuecomment-351542333 + - run: npm i semantic-release@11.0.2 + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: npm test + - run: ./refs.sh || true + - run: DEBUG=condition npx semantic-release || true + +# machine: +# node: +# version: "8" +# test: +# override: +# - npm test +# post: +# - ./refs.sh || true +# # try to get around a crash +# # https://github.com/bahmutov/condition-circle/issues/6#issuecomment-351542333 +# - npm i semantic-release@11.0.2 +# - DEBUG=condition npx semantic-release || true