Skip to content

Commit e070687

Browse files
committed
build: fix the release artifact
1 parent d0b3a88 commit e070687

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.circleci/config.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ job_defaults: &job_defaults
66
working_directory: ~/project/repo
77

88
cache_key: &cache_key angular-testing-library-deps-cache-{{ checksum "yarn.lock" }}
9-
dist_key: &dist_key angular-testing-library-dist-{{ .Revision }}
109

1110
jobs:
1211
install:
@@ -42,12 +41,10 @@ jobs:
4241
- run:
4342
name: build
4443
command: yarn build
45-
- save_cache:
46-
key: *dist_key
47-
paths:
48-
- dist
4944
- store_artifacts:
5045
path: dist
46+
- persist_to_workspace:
47+
root: dist
5148

5249
test:
5350
<<: *job_defaults
@@ -65,8 +62,8 @@ jobs:
6562
- checkout
6663
- restore_cache:
6764
key: *cache_key
68-
- restore_cache:
69-
key: *dist_key
65+
- attach_workspace:
66+
at: dist
7067
- run:
7168
name: release
7269
command: yarn semantic-release || true
@@ -77,8 +74,8 @@ jobs:
7774
- checkout
7875
- restore_cache:
7976
key: *cache_key
80-
- restore_cache:
81-
key: *dist_key
77+
- attach_workspace:
78+
at: dist
8279
- run:
8380
name: release
8481
command: yarn semantic-release || true

0 commit comments

Comments
 (0)