From 76d639f3946a0f6bd01886d1bc2698205c11f645 Mon Sep 17 00:00:00 2001 From: hallouma875 Date: Sat, 27 Mar 2021 19:55:58 +0100 Subject: [PATCH] :wrench: fix netlify deploy command and separate check format job --- .circleci/config.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ef17d10..cde47cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,9 +13,7 @@ aliases: install_node_modules: &install_node_modules run: command: yarn install - check_formatting: &check_formatting - run: - command: yarn add --dev --exact prettier && yarn format:write && yarn format:check + save_cache: &save_cache save_cache: key: yarn-cache-netlify-{{ checksum "yarn.lock" }} @@ -37,12 +35,20 @@ jobs: - run: name: Test command: yarn run test - + check_format: + executor: node + steps: + - checkout + - <<: *restore_cache + - <<: *install_node_modules + - <<: *save_cache + - run: + name: Test + command: yarn add --dev --exact prettier && yarn format:write && yarn format:check build: executor: node steps: - checkout - - <<: *check_formatting - <<: *restore_cache - <<: *install_node_modules - run: @@ -65,7 +71,7 @@ jobs: command: yarn global add netlify-cli - run: name: Deploy to Netlify - command: yarn run build && npm run netlify:deploy + command: yarn run build && yarn run netlify:deploy