From b7c0d809a46c6c470d025644da07c0e0c85e33e6 Mon Sep 17 00:00:00 2001 From: Chiara Date: Mon, 2 Nov 2020 10:27:36 +0100 Subject: [PATCH] add yarn install --- .circleci/config.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 16ff7ab..4b9e2fd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,14 +1,15 @@ -# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference version: 2.1 -# Use a package of configuration called an orb. -orbs: - # Declare a dependency on the welcome-orb - welcome: circleci/welcome-orb@0.4.1 -# Orchestrate or schedule a set of jobs -workflows: - # Name the workflow "welcome" - welcome: - # Run the welcome/run job in its own container - jobs: - - welcome/run - +# Define the jobs we want to run for this project +jobs: + build: + docker: + - image: cimg/node:14.10.1 + steps: + - checkout + - restore_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn global add node-gyp && yarn install + - save_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + paths: + - ./node_modules