File tree 7 files changed +15
-11
lines changed
7 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ jobs:
112
112
# If statement isn't needed here b/c yarn will leverage the cache if it exists
113
113
- name : Install dependencies
114
114
shell : bash
115
- run : yarn install --immutable
115
+ run : yarn install --immutable --immutable-cache
116
116
117
117
# # --- BUILD --- ##
118
118
- name : Build components & ui-icons
Original file line number Diff line number Diff line change 74
74
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
75
75
- name : Install dependencies
76
76
shell : bash
77
- run : yarn install --immutable
77
+ run : yarn install --immutable --immutable-cache
78
78
79
79
- name : Set the cache key for builds
80
80
id : derive-key
@@ -200,7 +200,7 @@ jobs:
200
200
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
201
201
- name : Install dependencies
202
202
shell : bash
203
- run : yarn install --immutable
203
+ run : yarn install --immutable --immutable-cache
204
204
205
205
# # --- BUILD --- ##
206
206
- name : Check for built assets
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ jobs:
170
170
# If statement isn't needed here b/c yarn will leverage the cache if it exists
171
171
- name : Install dependencies
172
172
shell : bash
173
- run : yarn install --immutable
173
+ run : yarn install --immutable --immutable-cache
174
174
175
175
# # --- Run plugins test suites --- ##
176
176
- name : Run plugin tests
Original file line number Diff line number Diff line change 86
86
# If statement isn't needed here b/c yarn will leverage the cache if it exists
87
87
- name : Install dependencies
88
88
shell : bash
89
- run : yarn install --immutable
89
+ run : yarn install --immutable --immutable-cache
90
90
91
91
# Components must be built before linting so that the custom properties are available
92
92
# in the dependencies for passthrough and token verification
Original file line number Diff line number Diff line change 64
64
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
65
65
- name : Install dependencies
66
66
shell : bash
67
- run : yarn install --immutable
67
+ run : yarn install --immutable --immutable-cache
68
68
69
69
# # --- BUILD --- ##
70
70
- name : Build storybook
Original file line number Diff line number Diff line change @@ -23,18 +23,22 @@ jobs:
23
23
cache : yarn
24
24
25
25
- name : Install Dependencies
26
- run : yarn install --immutable
26
+ run : yarn install --refresh-lockfile
27
+
28
+ - name : Add yarn.lock if changed
29
+ run : |
30
+ git diff --exit-code -- yarn.lock || git commit -m "chore(release): update yarn.lock if necessary" || echo "No changes to lockfile"
27
31
28
32
- name : Create Release Pull Request or Publish to npm
29
33
id : changesets
30
34
uses : changesets/action@v1
31
35
with :
32
- version : yarn version:packages
33
-
34
- # This expects you to have a script called release which does a build for your packages and calls changeset publish
35
36
title : " chore: release"
36
37
commit : " chore: release"
38
+ # This expects you to have a script called release / version:packages
39
+ # which does a build for your packages and calls changeset publish
37
40
publish : yarn release
41
+ version : yarn version:packages
38
42
39
43
env :
40
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 60
60
# # --- INSTALL --- ##
61
61
- name : Install dependencies
62
62
shell : bash
63
- run : yarn install --immutable
63
+ run : yarn install --immutable --immutable-cache
64
64
65
65
- name : Generate metadata assets
66
66
shell : bash
You can’t perform that action at this time.
0 commit comments