From e0706872d9633e37fcb9e4be9978cbcab3218bcd Mon Sep 17 00:00:00 2001 From: timdeschryver <28659384+timdeschryver@users.noreply.github.com> Date: Sun, 26 Jul 2020 08:49:23 +0200 Subject: [PATCH 1/2] build: fix the release artifact --- .circleci/config.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ef7e1dfb..77abf1ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,6 @@ job_defaults: &job_defaults working_directory: ~/project/repo cache_key: &cache_key angular-testing-library-deps-cache-{{ checksum "yarn.lock" }} -dist_key: &dist_key angular-testing-library-dist-{{ .Revision }} jobs: install: @@ -42,12 +41,10 @@ jobs: - run: name: build command: yarn build - - save_cache: - key: *dist_key - paths: - - dist - store_artifacts: path: dist + - persist_to_workspace: + root: dist test: <<: *job_defaults @@ -65,8 +62,8 @@ jobs: - checkout - restore_cache: key: *cache_key - - restore_cache: - key: *dist_key + - attach_workspace: + at: dist - run: name: release command: yarn semantic-release || true @@ -77,8 +74,8 @@ jobs: - checkout - restore_cache: key: *cache_key - - restore_cache: - key: *dist_key + - attach_workspace: + at: dist - run: name: release command: yarn semantic-release || true From 90861446e753ddfdd4a67e97f07cefce4ec43456 Mon Sep 17 00:00:00 2001 From: timdeschryver <28659384+timdeschryver@users.noreply.github.com> Date: Sun, 26 Jul 2020 08:53:12 +0200 Subject: [PATCH 2/2] add dist to workspace --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 77abf1ef..3bebfee6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,6 +45,8 @@ jobs: path: dist - persist_to_workspace: root: dist + paths: + - . test: <<: *job_defaults