--auto-accept-changes
在 Chromatic github 工作流程中,如果分支是,我如何使用 CLI 选项自动接受所有更改main
?
我正在使用以下github chromatic 工作流程以 chromatic 部署我的应用程序的组件:
# .github/workflows/chromatic.yml
# Workflow name
name: 'Chromatic'
# Event for the workflow
on: push
# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
# Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
token: ${{ secrets.REPO_GITHUB_TOKEN }}
# Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
分支检测出现在文档中,但我不确定如何在我的 yml 文件中使用它,因为我的操作只是yarn
.