From 9203d79200b8dbd926dbdfd8ae6cbe3a2559f9eb Mon Sep 17 00:00:00 2001 From: Paulius Varna Date: Wed, 17 Jul 2019 14:15:30 +0300 Subject: [PATCH] Added circle.yml --- circle.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..88b5c0f --- /dev/null +++ b/circle.yml @@ -0,0 +1,27 @@ +version: 2 +jobs: + build: + working_directory: ~/repo + docker: + - image: circleci/node:10-browsers + branches: + ignore: + - gh-pages # list of branches to ignore + - /release\/.*/ # or ignore regexes + steps: + - checkout + - restore_cache: + key: dependency-cache-{{ checksum "yarn.lock" }} + - run: + name: install dependences + command: yarn + - save_cache: + key: dependency-cache-{{ checksum "yarn.lock" }} + paths: + - ./node_modules + - run: + name: test + command: yarn test + - run: + name: Authenticate with registry + command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc \ No newline at end of file