build: publish CLI 0.189.0 #12439
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: | |
branches: | |
- main | |
pull_request: | |
# cancel in-progress runs on new commits to same PR (gitub.event.number) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | |
cancel-in-progress: true | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
chromatic: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 # we need to fetch at least parent commit to satisfy Chromatic | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit | |
- uses: ./.github/actions/ci-setup | |
- name: Chromatic | |
id: chromatic | |
uses: chromaui/[email protected] | |
with: | |
projectToken: bea8dc1981d4 | |
buildScriptName: storybook:build |