Skip to content

Commit 2da33ff

Browse files
committed
internal: Operate CI on a minimal amount of workspaces
1 parent 9a2393e commit 2da33ff

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.circleci/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ jobs:
3030
- run:
3131
name: Add examples/* to yarn workspace
3232
command: |
33-
npm pkg set 'workspaces[]'='examples/*'
33+
npm pkg delete workspaces[4]
34+
npm pkg set 'workspaces[]'='examples/todo-app'
35+
npm pkg set 'workspaces[]'='examples/github-app'
3436
- restore_cache:
3537
keys:
36-
- v13-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
38+
- v14-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
3739
# fallback to using the latest cache if no exact match is found
38-
- v13-dependencies-
40+
- v14-dependencies-
3941
- run:
4042
name: yarn install
4143
command: |
@@ -44,7 +46,7 @@ jobs:
4446
paths:
4547
- .yarn/cache
4648
- .yarn/install-state.gz
47-
key: v13-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
49+
key: v14-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
4850
- run: yarn run ci:build:types
4951
- run: yarn run ci:build-test-lib
5052
- persist_to_workspace:

0 commit comments

Comments
 (0)