chore(deps): update chromaui/action action to v17.4.0 (#8683) #19360
Workflow file for this run
This file contains hidden or 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: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: write # Chromatic posts PR comments | |
| statuses: write # Chromatic posts commit statuses | |
| jobs: | |
| chromatic: | |
| if: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' || contains(github.event.head_commit.message, '[ci chromatic]') }} | |
| runs-on: ubuntu-latest | |
| env: | |
| CYPRESS_INSTALL_BINARY: 0 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@31fa436e1ba57b2e5498d7798e0b49f53711db0c # v17.4.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| buildScriptName: 'build:sb' | |
| skip: 'dependabot/**' | |
| env: | |
| STORYBOOK_ENV: chromatic | |
| NODE_OPTIONS: '--max-old-space-size=4096' |