Skip to content

Commit e32c881

Browse files
committed
build: use yarn
1 parent 47ad255 commit e32c881

File tree

4 files changed

+10249
-17587
lines changed

4 files changed

+10249
-17587
lines changed

Diff for: .circleci/config.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ job_defaults: &job_defaults
55
- image: circleci/node:latest
66
working_directory: ~/project/repo
77

8-
cache_key: &cache_key testing-library-deps-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
8+
cache_key: &cache_key testing-library-deps-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
99
dist_key: &dist_key testing-library-dist-{{ .Revision }}
1010

1111
jobs:
@@ -17,7 +17,7 @@ jobs:
1717
key: *cache_key
1818
- run:
1919
name: install-dependencies
20-
command: npm ci
20+
command: yarn
2121
- save_cache:
2222
key: *cache_key
2323
paths:
@@ -31,7 +31,7 @@ jobs:
3131
key: *cache_key
3232
- run:
3333
name: lint
34-
command: npm run lint
34+
command: yarn lint
3535

3636
test-lib:
3737
<<: *job_defaults
@@ -41,7 +41,7 @@ jobs:
4141
key: *cache_key
4242
- run:
4343
name: test
44-
command: npm run test
44+
command: yarn test
4545

4646
build-lib:
4747
<<: *job_defaults
@@ -51,7 +51,7 @@ jobs:
5151
key: *cache_key
5252
- run:
5353
name: test
54-
command: npm run build
54+
command: yarn build
5555
- save_cache:
5656
key: *dist_key
5757
paths:
@@ -67,7 +67,7 @@ jobs:
6767
key: *dist_key
6868
- run:
6969
name: test
70-
command: npm run test:app
70+
command: yarn test:app
7171

7272
release:
7373
<<: *job_defaults
@@ -79,7 +79,7 @@ jobs:
7979
key: *dist_key
8080
- run:
8181
name: release
82-
command: npm run semantic-release || true
82+
command: yarn semantic-release || true
8383

8484
workflows:
8585
version: 2

0 commit comments

Comments
 (0)