Skip to content

Bump chromaui/action from 18.1.0 to 18.6.0 in the actions group #1281

Bump chromaui/action from 18.1.0 to 18.6.0 in the actions group

Bump chromaui/action from 18.1.0 to 18.6.0 in the actions group #1281

Workflow file for this run

name: CI Build
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.ref }}
CHROMATIC_SLUG: ${{ github.repository }}
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
- name: Enable corepack
run: corepack enable
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
cache: yarn
node-version-file: .nvmrc
- name: Yarn Install
run: yarn
- name: Lint
run: yarn lint
- name: Jest Tests
run: yarn test --coverage
- name: Sonar analysis
if: ${{ env.SONAR_TOKEN }}
uses: SonarSource/sonarqube-scan-action@22918119ff8e1ca75a623e15c8296b6ea4fbe28f
- name: Package build
run: yarn build
env:
NODE_ENV: production
- name: Storybook build
run: yarn build-storybook
env:
NODE_ENV: production
- name: Switch to PR branch
if: ${{ github.event_name == 'pull_request' && env.CHROMATIC_PROJECT_TOKEN }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
clean: false
fetch-depth: 0
ref: ${{ env.CHROMATIC_BRANCH }}
- name: Storybook deploy
if: ${{ env.CHROMATIC_PROJECT_TOKEN }}
uses: chromaui/action@fd5e7e8b66d1a6862ed8866c21e93788217f7cf7
with:
autoAcceptChanges: main
branchName: ${{ env.CHROMATIC_BRANCH}}
exitZeroOnChanges: false
onlyChanged: ${{ github.event_name == 'pull_request' }}
projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }}
token: ${{ env.GITHUB_TOKEN }}