Update packages/core/src/components/Tipseen/TipseenBasicContent.modul… #5754
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Chromatic" | |
on: push | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: yarn | |
- name: Check if there are changed packages | |
id: changed-packages | |
continue-on-error: true | |
run: | | |
changed_packages=$(yarn -s lerna ls --since=origin/master --json --loglevel=error) | |
[[ $changed_packages = "[]" ]] && echo "HAS_CHANGES=false" >> $GITHUB_ENV || echo "HAS_CHANGES=true" >> $GITHUB_ENV | |
- name: Run Build | |
if: ${{ env.HAS_CHANGES == 'true' }} | |
shell: bash | |
run: yarn lerna run build --since=origin/master --include-filtered-dependencies | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
if: ${{ env.HAS_CHANGES == 'true' }} | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# 👇 Chromatic projectToken, if you are project maintainer refer to the manage page to obtain it. | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
workingDir: packages/core |