From a92cd9aa3a9f0809cb83813a2440807f1cf955e1 Mon Sep 17 00:00:00 2001 From: Eric Dobbertin Date: Thu, 27 Feb 2020 17:04:50 -0600 Subject: [PATCH] chore: enable CI publish Signed-off-by: Eric Dobbertin --- .circleci/config.yml | 49 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5bd60d7..f426426 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,24 +1,53 @@ -# Javascript Node CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-javascript/ for more details -# version: 2 jobs: + build: + docker: + - image: node:12 + steps: + - checkout + - run: npm ci + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} + + lint: + docker: + - image: node:12 + steps: + - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + - run: npm run lint + deploy: docker: - - image: circleci/node:12.14.1 - working_directory: ~/repo + - image: node:12 steps: - checkout - - run: npm install - # - run: npx semantic-release + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + - run: npx semantic-release workflows: version: 2 - deploy: + build_deploy: jobs: + - build: + context: reaction-publish-semantic-release + - lint: + requires: + - build - deploy: context: reaction-publish-semantic-release + requires: + - lint filters: branches: - only: trunk + only: trunk \ No newline at end of file