Skip to content

Commit 358d92c

Browse files
committed
chore(ci): incorporate tokens & ui-icons in compare reports
1 parent 6e4eddf commit 358d92c

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/compare-results.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ jobs:
7777
uses: actions/download-artifact@v3
7878
with:
7979
name: ubuntu-latest-node18-compiled-assets-${{ inputs.head-sha }}
80-
path: ${{ github.workspace }}/${{ inputs.head-sha }}/components
80+
path: ${{ github.workspace }}/${{ inputs.head-sha }}
8181

8282
- name: Download build artifacts for base ${{ inputs.base-sha }}
8383
uses: actions/download-artifact@v3
8484
with:
8585
name: ubuntu-latest-node18-compiled-assets-${{ inputs.base-sha }}
86-
path: ${{ github.workspace }}/${{ inputs.base-sha }}/components
86+
path: ${{ github.workspace }}/${{ inputs.base-sha }}
8787

8888
- name: Compare compiled output file size
8989
id: compare
@@ -92,7 +92,10 @@ jobs:
9292
with:
9393
path: ${{ github.workspace }}/${{ inputs.head-sha }}/
9494
diff-path: ${{ github.workspace }}/${{ inputs.base-sha }}/
95-
file-glob-pattern: components/*/dist/**
95+
file-glob-pattern: |
96+
components/*/dist/**
97+
tokens/dist/**
98+
ui-icons/dist/**
9699
token: ${{ secrets.GITHUB_TOKEN }}
97100

98101
fetch-build-artifacts:
@@ -161,16 +164,13 @@ jobs:
161164
uses: actions/cache@v3
162165
with:
163166
path: |
164-
components/*/dist/**
167+
components/*/dist/**
168+
tokens/dist/**
169+
ui-icons/dist/**
165170
key: ${{ steps.derive-key.outputs.key }}
166171

167-
- name: Build components
168-
if: ${{ matrix.branch == inputs.base-sha && steps.cache-build.outputs.cache-hit != 'true' }}
169-
shell: bash
170-
run: yarn build
171-
172-
- name: Build components
173-
if: ${{ matrix.branch == inputs.head-sha && steps.cache-build.outputs.cache-hit != 'true' }}
172+
- name: Build
173+
if: ${{ steps.cache-build.outputs.cache-hit != 'true' }}
174174
shell: bash
175175
run: yarn build
176176

@@ -179,7 +179,9 @@ jobs:
179179
uses: actions/upload-artifact@v3
180180
with:
181181
path: |
182-
${{ github.workspace }}/components/*/dist/**
182+
${{ github.workspace }}/components/*/dist/**
183+
${{ github.workspace }}/tokens/dist/**
184+
${{ github.workspace }}/ui-icons/dist/**
183185
name: ${{ steps.derive-key.outputs.key }}
184186
# this is important, it lets us catch if the build failed silently
185187
# by alterting us that no compiled assets were generated

.storybook/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const componentPkgs = readdirSync(componentsPath, {
88
.map((dirent) => dirent.name);
99
module.exports = {
1010
stories: [
11-
"../components/*/stories/*.stories.mdx",
1211
"../components/*/stories/*.stories.@(js|jsx|ts|tsx)",
1312
],
1413
rootDir: "../",

0 commit comments

Comments
 (0)