Browse Source

Fix CI (#952)

* Checksum against lockfile
* Use Node 8 Docker image
main
Alex Krolick 7 years ago
committed by GitHub
parent
commit
cec61969ea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .circleci/config.yml
  2. 2
      package.json

6
.circleci/config.yml

@ -2,12 +2,12 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:latest
- image: circleci/node:8
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}
- dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- dependencies-
- run:
@ -16,7 +16,7 @@ jobs:
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "package.json" }}
key: dependencies-{{ checksum "yarn.lock" }}
- run:
name: Check Prettier, ESLint, Flow
command: yarn ci-check

2
package.json

@ -62,7 +62,7 @@
"unist-util-visit": "^1.1.3"
},
"engines": {
"node": ">=8.4.0"
"node": "^8.4.0"
},
"homepage": "https://reactjs.org/",
"keywords": [

Loading…
Cancel
Save