Fix gitbook-cli install

This commit is contained in:
Juho Teperi 2017-10-25 18:00:09 +03:00
parent 964bd47aeb
commit 8a411b13de

View file

@ -29,13 +29,14 @@ jobs:
- image: circleci/node:latest - image: circleci/node:latest
steps: steps:
- checkout - checkout
- run: rm package.json package-lock.json
- restore_cache: - restore_cache:
keys: keys:
- 'v1-gitbook-{{ checksum "book.json" }}' - 'v1-gitbook-{{ checksum "book.json" }}'
- 'v1-gitbook-' - 'v1-gitbook-'
- run: - run:
name: "Install GitBook" name: "Install GitBook"
command: npm install -g gitbook-cli && gitbook install command: npm install gitbook-cli && ./node_modules/.bin/gitbook install
- run: - run:
name: "Clone gh-pages" name: "Clone gh-pages"
command: git clone --branch gh-pages git@github.com:metosin/reitit.git ~/gh-pages command: git clone --branch gh-pages git@github.com:metosin/reitit.git ~/gh-pages