From 1918eec3e2ce7b6bba10353162d32b28d095b378 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 14 Feb 2018 21:11:13 +0000 Subject: [PATCH] Add caching to CI job --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ba87edb..bb8fd52 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,9 +11,15 @@ jobs: - run: name: Install Hugo command: wget https://github.com/gohugoio/hugo/releases/download/v0.35/hugo_0.35_Linux-64bit.deb -O /tmp/hugo.deb && sudo dpkg -i /tmp/hugo.deb + - restore_cache: + key: npm-{{ checksum "package.json" }} - run: name: Install dependencies command: npm install + - save_cache: + key: npm-{{ checksum "package.json" }} + paths: + - node_modules - run: name: Build site command: make release