feat: app versioning + About UI for cms and web [COD-414] #95
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: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| actions: read | |
| contents: read | |
| statuses: write | |
| # Environment details: | |
| # - Nx Cloud cache is used for human-driven runs: PRs, pushes to main, and | |
| # manual workflow_dispatch. | |
| # - Disabled only for machine-driven runs — renovate branches (matched on push | |
| # and PR via head_ref/ref_name) — or via the NX_NO_CLOUD repo variable, to | |
| # keep costs down on high-frequency bot traffic. (Matches ci.yml.) | |
| env: | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| NX_NO_CLOUD: ${{ startsWith(github.head_ref || github.ref_name, 'renovate') || | |
| vars.NX_NO_CLOUD == 'true' }} | |
| NX_PARALLEL: ${{ vars.NX_PARALLEL }} | |
| NX_VERBOSE_LOGGING: ${{ vars.NX_VERBOSE_LOGGING }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| chromatic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm package manager | |
| uses: pnpm/action-setup@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Analyze affected projects | |
| uses: nrwl/nx-set-shas@v5 | |
| - name: Publish to Chromatic | |
| run: pnpm nx affected -t chromatic | |
| env: | |
| CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |