Skip to content

Commit

Permalink
[NO JIRA]: Update build caching key naming to account for stories upd…
Browse files Browse the repository at this point in the history
…ates (#3206)
  • Loading branch information
olliecurtis authored Feb 7, 2024
1 parent 08b7517 commit 5aed6b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
id: storybook-dist-cache
with:
path: dist-storybook/
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**') }}
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**', 'examples/**') }}

- name: Percy Test
run: npm run percy-test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
path: |
dist-storybook/
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**') }}
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**', 'examples/**') }}

- name: Create build cache
if: ${{ steps.storybook-dist-cache.outputs.cache-hit != 'true' }}
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
id: storybook-dist-cache
with:
path: dist-storybook/
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**') }}
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**', 'examples/**') }}

- name: Deploy Storybook for main
uses: peaceiris/actions-gh-pages@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
path: |
dist-storybook/
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**') }}
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**', 'examples/**') }}

- name: Create build cache
if: ${{ steps.storybook-dist-cache.outputs.cache-hit != 'true' }}
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
id: storybook-dist-cache
with:
path: dist-storybook/
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**') }}
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**', 'examples/**') }}

- name: Prepare to deploy Storybook (pull request build)
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
path: |
dist-storybook/
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**') }}
key: ${{ env.BUILD_CACHE_NAME }}-${{ hashFiles('packages/**', 'examples/**') }}

- name: Create build cache
if: ${{ steps.storybook-dist-cache.outputs.cache-hit != 'true' }}
Expand Down

0 comments on commit 5aed6b2

Please sign in to comment.