Skip to content

Vincent/create analytics actions view (#459) #96

Vincent/create analytics actions view (#459)

Vincent/create analytics actions view (#459) #96

Workflow file for this run

# .github/workflows/cicd-chromatic.yml
# Workflow name
name: 'Chromatic Publish'
# Event for the workflow
on:
push:
paths:
- ".github/workflows/cicd-chromatic.yml"
- "frontend/src/**/*.stories.jsx"
- "frontend/src/features/commonComponents/**"
- "frontend/src/features/commonStyles/**"
# List of jobs
jobs:
test:
# Operating System
runs-on: ubuntu-22.04
# Job steps
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: ./frontend/package-lock.json
node-version: 18
- name: Install Node.js dependencies
run: npm ci
working-directory: ./frontend
#馃憞 Adds Chromatic as a step in the workflow
- uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
workingDir: frontend/
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}