Skip to content

Commit

Permalink
Merge branch 'epic/7180-component-tokens' into jcfranco/7180-add-comp…
Browse files Browse the repository at this point in the history
…onent-tokens-for-inline-editable
  • Loading branch information
jcfranco authored Jan 16, 2024
2 parents ca34dc0 + 2c65666 commit 0c67a9e
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/chromatic-7180.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Chromatic - epic/7180-component-tokens"
on:
push:
branches: [epic/7180-component-tokens]
pull_request:
branches: [epic/7180-component-tokens]
types: [labeled, synchronize]
jobs:
run:
if: |
(github.event.action == 'labeled' && github.event.label.name == 'pr ready for visual snapshots') || github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: package.json
- run: npm install
- run: npm --workspace="packages/calcite-design-tokens" run build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
exitOnceUploaded: true
autoAcceptChanges: epic/7180-component-tokens
workingDir: packages/calcite-components
env:
STORYBOOK_SCREENSHOT_TEST_BUILD: true
CHROMATIC_DIFF_THRESHOLD: ${{ secrets.CHROMATIC_DIFF_THRESHOLD }}
skip:
if: contains(github.event.pull_request.labels.*.name, 'skip visual snapshots')
runs-on: ubuntu-latest
steps:
- name: Skip Chromatic
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: UI Tests
description: Chromatic run skipped
state: success
sha: ${{github.event.pull_request.head.sha || github.sha}}

0 comments on commit 0c67a9e

Please sign in to comment.