build(release v1.18.1): See CHANGE_LOG.md #544
Workflow file for this run
This file contains 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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-chromatic | |
cancel-in-progress: true | |
jobs: | |
changed-files: | |
runs-on: ubuntu-latest | |
name: changed-files | |
outputs: | |
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }} | |
any_changed: ${{ steps.changed-files.outputs.any_changed }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: | | |
apps/nextjs/** | |
chromatic: | |
name: Run Chromatic | |
needs: [changed-files] | |
if: ${{ needs.changed-files.outputs.any_changed == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Inject Doppler env vars | |
uses: dopplerhq/[email protected] | |
id: doppler | |
with: | |
doppler-token: ${{ secrets.DOPPLER_TOKEN }} | |
inject-env-vars: true | |
- name: Run Chromatic | |
uses: chromaui/action@latest | |
with: | |
workingDir: apps/nextjs | |
exitZeroOnChanges: true | |
exitOnceUploaded: true | |
onlyChanged: true |