diff --git a/.changeset/warm-trees-build.md b/.changeset/warm-trees-build.md new file mode 100644 index 0000000000..f632e112e9 --- /dev/null +++ b/.changeset/warm-trees-build.md @@ -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. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8f31137bd..e763de5576 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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