We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f91dd32 commit 851868cCopy full SHA for 851868c
.github/workflows/ci.yaml
@@ -31,15 +31,11 @@ jobs:
31
run: yarn test
32
- name: Build
33
run: yarn build
34
- chromatic-deployment:
35
- runs-on: ubuntu-latest
36
- # Job steps
37
- steps:
38
- - uses: actions/checkout@v1
39
- - name: Install dependencies
40
- run: yarn
41
- name: Publish to Chromatic
42
uses: chromaui/action@v1
+ # don't run this step if project token secret not specified
+ # to prevent this workflow failing for any forked repositories
+ if: ${{ env.projectToken }}
43
with:
44
token: ${{ secrets.GITHUB_TOKEN }}
45
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
0 commit comments