[v4] fix: Pin node-gyp to address issue building on Node 8 (#2992)

* Update Dockerfile

* Update config.yml
This commit is contained in:
Mendel Konikov
2020-06-23 18:41:34 +00:00
committed by GitHub
parent 9109d5ab71
commit 77e54aab1f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ jobs:
- run:
name: Install dependencies
command: |
yarn global add node-gyp &&
yarn global add node-gyp@6.1.0 &&
yarn install --frozen-lockfile
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
+2 -1
View File
@@ -20,7 +20,8 @@ ARG REVISION_HASH
ENV REVISION_HASH=${REVISION_HASH}
# Install app dependencies and build static assets.
RUN yarn global add node-gyp && \
# Pin node-gyp@6.1.0 as newer versions do not build on Node 8.
RUN yarn global add node-gyp@6.1.0 && \
yarn install --frozen-lockfile && \
yarn build && \
yarn cache clean