Skip to content

Commit

Permalink
Explicitly build ts docs (#1931)
Browse files Browse the repository at this point in the history
* patch

* WIP

* try agian

* check

* with a better changeset
  • Loading branch information
bruugey authored Aug 10, 2023
1 parent f1b27df commit c11bbc2
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 5 deletions.
61 changes: 61 additions & 0 deletions .changeset/warm-trees-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
'@leafygreen-ui/a11y': patch
'@leafygreen-ui/badge': patch
'@leafygreen-ui/banner': patch
'@leafygreen-ui/box': patch
'@leafygreen-ui/button': patch
'@leafygreen-ui/callout': patch
'@leafygreen-ui/card': patch
'@leafygreen-ui/checkbox': patch
'@leafygreen-ui/code': patch
'@leafygreen-ui/combobox': patch
'@leafygreen-ui/confirmation-modal': patch
'@leafygreen-ui/copyable': patch
'@leafygreen-ui/emotion': patch
'@leafygreen-ui/empty-state': patch
'@leafygreen-ui/expandable-card': patch
'@leafygreen-ui/form-footer': patch
'@leafygreen-ui/guide-cue': patch
'@leafygreen-ui/hooks': patch
'@leafygreen-ui/icon': patch
'@leafygreen-ui/icon-button': patch
'@leafygreen-ui/inline-definition': patch
'@leafygreen-ui/input-option': patch
'@leafygreen-ui/leafygreen-provider': patch
'@leafygreen-ui/lib': patch
'@leafygreen-ui/loading-indicator': patch
'@leafygreen-ui/logo': patch
'@leafygreen-ui/marketing-modal': patch
'@leafygreen-ui/menu': patch
'@leafygreen-ui/modal': patch
'@leafygreen-ui/number-input': patch
'@leafygreen-ui/pagination': patch
'@leafygreen-ui/palette': patch
'@leafygreen-ui/password-input': patch
'@leafygreen-ui/pipeline': patch
'@leafygreen-ui/polymorphic': patch
'@leafygreen-ui/popover': patch
'@leafygreen-ui/portal': patch
'@leafygreen-ui/radio-box-group': patch
'@leafygreen-ui/radio-group': patch
'@leafygreen-ui/ripple': patch
'@leafygreen-ui/search-input': patch
'@leafygreen-ui/segmented-control': patch
'@leafygreen-ui/select': patch
'@leafygreen-ui/side-nav': patch
'@leafygreen-ui/skeleton-loader': patch
'@leafygreen-ui/split-button': patch
'@leafygreen-ui/stepper': patch
'@leafygreen-ui/table': patch
'@leafygreen-ui/tabs': patch
'@leafygreen-ui/testing-lib': patch
'@leafygreen-ui/text-area': patch
'@leafygreen-ui/text-input': patch
'@leafygreen-ui/toast': patch
'@leafygreen-ui/toggle': patch
'@leafygreen-ui/tokens': patch
'@leafygreen-ui/tooltip': patch
'@leafygreen-ui/typography': patch
---

Fixes problem with ts-docs not being available in bundle.
22 changes: 17 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
path: |
**/dist
!**/node_modules
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
**/tsdoc.json
**/stories.js
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}

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

- name: build
- name: Build
if: ${{ steps.build-cache.outputs.cache-hit != 'true' }}
run: yarn build

- name: Generate docs
if: ${{ steps.build-cache.outputs.cache-hit != 'true' }}
run: turbo run docs

chromatic:
name: Establish Chromatic baseline
runs-on: ubuntu-latest
Expand All @@ -64,7 +70,9 @@ jobs:
path: |
**/dist
!**/node_modules
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
**/tsdoc.json
**/stories.js
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}

- name: Publish to Chromatic
uses: chromaui/action@v1
Expand Down Expand Up @@ -102,7 +110,9 @@ jobs:
path: |
**/dist
!**/node_modules
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
**/tsdoc.json
**/stories.js
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}

- name: Version packages
id: changesets
Expand Down Expand Up @@ -140,7 +150,9 @@ jobs:
path: |
**/dist
!**/node_modules
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
**/tsdoc.json
**/stories.js
key: ${{ runner.os }}-release-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}

- name: Notify Slack channel of new releases
id: slackbot
Expand Down

0 comments on commit c11bbc2

Please sign in to comment.