From 67a24b459c67c233a5f1e62ae89858a9a94433ce Mon Sep 17 00:00:00 2001 From: mmiller Date: Sat, 22 Jul 2017 18:21:29 -0600 Subject: [PATCH] CircleCI setup --- .circleci/config.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..51e5f5f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,19 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node:latest + working_directory: ~/html-webpack-externals-plugin + + steps: + - checkout + - run: sudo npm install -g npm@latest + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: npm install + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - node_modules + - run: npm test + - deploy: if [ "${CIRCLE_TAG}" == v* ]; then npm publish; fi