File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ jobs:
11
11
run : yarn
12
12
- name : Check if there are changed packages
13
13
id : changed-packages
14
+ continue-on-error : true
14
15
run : |
15
16
changed_packages=$(yarn -s lerna ls --since=origin/master --json --loglevel=error)
16
- [[ $changed_packages = "[]" ]] && echo "No packages changed in this branch" && exit 0 || echo "Continuing to Chromatic"
17
+ [[ $changed_packages = "[]" ]] && echo "HAS_CHANGES=false" >> $GITHUB_ENV || echo "HAS_CHANGES=true" >> $GITHUB_ENV
17
18
- name : Run Build
19
+ if : ${{ env.HAS_CHANGES == 'true' }}
18
20
shell : bash
19
21
run : yarn lerna run build --since=origin/master --include-filtered-dependencies
20
22
- name : Publish to Chromatic
21
23
uses : chromaui/action@v1
24
+ if : ${{ env.HAS_CHANGES == 'true' }}
22
25
with :
23
26
token : ${{ secrets.GITHUB_TOKEN }}
24
27
# 👇 Chromatic projectToken, if you are project maintainer refer to the manage page to obtain it.
Original file line number Diff line number Diff line change 22
22
id : changed-packages
23
23
run : |
24
24
changed_packages=$(yarn -s lerna ls --since=origin/master --json --loglevel=error)
25
- [[ $changed_packages = "[]" ]] && echo "No packages changed in this branch" && exit 0 || echo "Continuing to prerelease"
25
+ [[ $changed_packages = "[]" ]] && echo "No packages changed in this branch" && exit 1 || echo "Continuing to prerelease"
26
26
- name : Build all affected packages
27
27
run : yarn lerna run build --since=origin/master
28
28
- name : Generate prerelease prefix
You can’t perform that action at this time.
0 commit comments