-
Notifications
You must be signed in to change notification settings - Fork 362
41 lines (38 loc) 路 1.03 KB
/
Copy pathchromatic.yml
File metadata and controls
41 lines (38 loc) 路 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Chromatic
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- master
jobs:
build:
name: Build
uses: ./.github/workflows/build-and-upload.yml
with:
skip_release_artifacts: true
secrets:
npm_token: ${{ secrets.npm_token }}
publish-chromatic:
name: Publish Chromatic
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Setup
uses: ./.github/actions/setup
with:
npm_token: ${{ secrets.npm_token }}
- uses: ./.github/actions/download-builds
if: ${{ needs.build.outputs.has_changes == 'true' }}
- name: Publish to Chromatic
uses: chromaui/action@v11
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/docs
exitOnceUploaded: true
onlyChanged: false
skip: ${{ needs.build.outputs.has_changes == 'false' }}