Skip to content

Commit c11bbc2

Browse files
authored
Explicitly build ts docs (#1931)
* patch * WIP * try agian * check * with a better changeset
1 parent f1b27df commit c11bbc2

File tree

2 files changed

+78
-5
lines changed

2 files changed

+78
-5
lines changed

.changeset/warm-trees-build.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
'@leafygreen-ui/a11y': patch
3+
'@leafygreen-ui/badge': patch
4+
'@leafygreen-ui/banner': patch
5+
'@leafygreen-ui/box': patch
6+
'@leafygreen-ui/button': patch
7+
'@leafygreen-ui/callout': patch
8+
'@leafygreen-ui/card': patch
9+
'@leafygreen-ui/checkbox': patch
10+
'@leafygreen-ui/code': patch
11+
'@leafygreen-ui/combobox': patch
12+
'@leafygreen-ui/confirmation-modal': patch
13+
'@leafygreen-ui/copyable': patch
14+
'@leafygreen-ui/emotion': patch
15+
'@leafygreen-ui/empty-state': patch
16+
'@leafygreen-ui/expandable-card': patch
17+
'@leafygreen-ui/form-footer': patch
18+
'@leafygreen-ui/guide-cue': patch
19+
'@leafygreen-ui/hooks': patch
20+
'@leafygreen-ui/icon': patch
21+
'@leafygreen-ui/icon-button': patch
22+
'@leafygreen-ui/inline-definition': patch
23+
'@leafygreen-ui/input-option': patch
24+
'@leafygreen-ui/leafygreen-provider': patch
25+
'@leafygreen-ui/lib': patch
26+
'@leafygreen-ui/loading-indicator': patch
27+
'@leafygreen-ui/logo': patch
28+
'@leafygreen-ui/marketing-modal': patch
29+
'@leafygreen-ui/menu': patch
30+
'@leafygreen-ui/modal': patch
31+
'@leafygreen-ui/number-input': patch
32+
'@leafygreen-ui/pagination': patch
33+
'@leafygreen-ui/palette': patch
34+
'@leafygreen-ui/password-input': patch
35+
'@leafygreen-ui/pipeline': patch
36+
'@leafygreen-ui/polymorphic': patch
37+
'@leafygreen-ui/popover': patch
38+
'@leafygreen-ui/portal': patch
39+
'@leafygreen-ui/radio-box-group': patch
40+
'@leafygreen-ui/radio-group': patch
41+
'@leafygreen-ui/ripple': patch
42+
'@leafygreen-ui/search-input': patch
43+
'@leafygreen-ui/segmented-control': patch
44+
'@leafygreen-ui/select': patch
45+
'@leafygreen-ui/side-nav': patch
46+
'@leafygreen-ui/skeleton-loader': patch
47+
'@leafygreen-ui/split-button': patch
48+
'@leafygreen-ui/stepper': patch
49+
'@leafygreen-ui/table': patch
50+
'@leafygreen-ui/tabs': patch
51+
'@leafygreen-ui/testing-lib': patch
52+
'@leafygreen-ui/text-area': patch
53+
'@leafygreen-ui/text-input': patch
54+
'@leafygreen-ui/toast': patch
55+
'@leafygreen-ui/toggle': patch
56+
'@leafygreen-ui/tokens': patch
57+
'@leafygreen-ui/tooltip': patch
58+
'@leafygreen-ui/typography': patch
59+
---
60+
61+
Fixes problem with ts-docs not being available in bundle.

.github/workflows/release.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
path: |
2020
**/dist
2121
!**/node_modules
22-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
22+
**/tsdoc.json
23+
**/stories.js
24+
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
2325

2426
# Only setup & build if there was no build cache hit
2527
- name: Use Node 16
@@ -34,10 +36,14 @@ jobs:
3436
if: ${{ steps.build-cache.outputs.cache-hit != 'true' }}
3537
run: yarn install --frozen-lockfile --prefer-offline
3638

37-
- name: build
39+
- name: Build
3840
if: ${{ steps.build-cache.outputs.cache-hit != 'true' }}
3941
run: yarn build
4042

43+
- name: Generate docs
44+
if: ${{ steps.build-cache.outputs.cache-hit != 'true' }}
45+
run: turbo run docs
46+
4147
chromatic:
4248
name: Establish Chromatic baseline
4349
runs-on: ubuntu-latest
@@ -64,7 +70,9 @@ jobs:
6470
path: |
6571
**/dist
6672
!**/node_modules
67-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
73+
**/tsdoc.json
74+
**/stories.js
75+
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
6876

6977
- name: Publish to Chromatic
7078
uses: chromaui/action@v1
@@ -102,7 +110,9 @@ jobs:
102110
path: |
103111
**/dist
104112
!**/node_modules
105-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
113+
**/tsdoc.json
114+
**/stories.js
115+
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
106116

107117
- name: Version packages
108118
id: changesets
@@ -140,7 +150,9 @@ jobs:
140150
path: |
141151
**/dist
142152
!**/node_modules
143-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
153+
**/tsdoc.json
154+
**/stories.js
155+
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
144156

145157
- name: Notify Slack channel of new releases
146158
id: slackbot

0 commit comments

Comments
 (0)