Skip to content

Commit 457e210

Browse files
build: fix the release artifact (#129)
1 parent d0b3a88 commit 457e210

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.circleci/config.yml

Lines changed: 8 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,12 @@ 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
48+
paths:
49+
- .
5150

5251
test:
5352
<<: *job_defaults
@@ -65,8 +64,8 @@ jobs:
6564
- checkout
6665
- restore_cache:
6766
key: *cache_key
68-
- restore_cache:
69-
key: *dist_key
67+
- attach_workspace:
68+
at: dist
7069
- run:
7170
name: release
7271
command: yarn semantic-release || true
@@ -77,8 +76,8 @@ jobs:
7776
- checkout
7877
- restore_cache:
7978
key: *cache_key
80-
- restore_cache:
81-
key: *dist_key
79+
- attach_workspace:
80+
at: dist
8281
- run:
8382
name: release
8483
command: yarn semantic-release || true

0 commit comments

Comments
 (0)