Skip to content

Commit 7f70795

Browse files
committed
fixup! ci: move chromatic to coder.yaml
1 parent 8cd1817 commit 7f70795

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/coder.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
outputs:
3636
docs-only: ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
3737
sh: ${{ steps.filter.outputs.sh }}
38+
ts: ${{ steps.filter.outputs.ts }}
3839
steps:
3940
- uses: actions/checkout@v3
4041
# For pull requests it's not necessary to checkout the code
@@ -50,6 +51,11 @@ jobs:
5051
# - '.github/**'
5152
sh:
5253
- "**.sh"
54+
ts:
55+
- "**.tsx?"
56+
- "**.jsx?"
57+
- "**.lock"
58+
- "**.json"
5359
- id: debug
5460
run: |
5561
echo "${{ toJSON(steps.filter )}}"
@@ -606,7 +612,9 @@ jobs:
606612
chromatic:
607613
# REMARK: this is only used to build storybook and deploy it to Chromatic.
608614
runs-on: ubuntu-latest
609-
615+
needs:
616+
- changes
617+
if: needs.changes.outputs.ts == 'true'
610618
steps:
611619
- uses: actions/checkout@v3
612620
with:

0 commit comments

Comments
 (0)