Skip to content

Commit 61738b9

Browse files
committed
fix: circleci cache paths
1 parent fd01986 commit 61738b9

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.circleci/config.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ release: &release
1212
<<: *defaults
1313
steps:
1414
- checkout
15+
- attach_workspace:
16+
at: ~/repo
1517
- restore_cache:
1618
name: Restore Yarn Package Cache
1719
key: yarn-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
18-
- attach_workspace:
19-
at: ~/repo
20+
- run:
21+
name: Install dependencies
22+
command: yarn
2023
- run:
2124
name: Release to npm
2225
command: yarn release
@@ -38,7 +41,12 @@ jobs:
3841
key: yarn-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
3942
paths:
4043
- node_modules
41-
- packages/**/node_modules
44+
- packages/common-helpers/node_modules
45+
- packages/common-types/node_modules
46+
- packages/common-enums/node_modules
47+
- packages/components-vue/node_modules
48+
- packages/nuxt/node_modules
49+
- packages/styles/node_modules
4250
- run:
4351
name: Define environment variable with lastest commit's message
4452
command: |
@@ -56,6 +64,9 @@ jobs:
5664
- restore_cache:
5765
name: Restore Yarn Package Cache
5866
key: yarn-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
67+
- run:
68+
name: Install dependencies
69+
command: yarn
5970
- run:
6071
name: Build distributables
6172
command: yarn build
@@ -69,11 +80,14 @@ jobs:
6980
<<: *defaults
7081
steps:
7182
- checkout
83+
- attach_workspace:
84+
at: ~/repo
7285
- restore_cache:
7386
name: Restore Yarn Package Cache
7487
key: yarn-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
75-
- attach_workspace:
76-
at: ~/repo
88+
- run:
89+
name: Install dependencies
90+
command: yarn
7791
- run:
7892
name: Lint & check
7993
command: yarn lint
@@ -85,11 +99,14 @@ jobs:
8599
<<: *defaults
86100
steps:
87101
- checkout
102+
- attach_workspace:
103+
at: ~/repo
88104
- restore_cache:
89105
name: Restore Yarn Package Cache
90106
key: yarn-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
91-
- attach_workspace:
92-
at: ~/repo
107+
- run:
108+
name: Install dependencies
109+
command: yarn
93110
- run:
94111
name: Dry release
95112
command: yarn release:dry

0 commit comments

Comments
 (0)