Skip to content

Restore CSS/SCSS bundling builds (#557) #27

Restore CSS/SCSS bundling builds (#557)

Restore CSS/SCSS bundling builds (#557) #27

Workflow file for this run

name: 'Chromatic Deployment'
on:
push:
branches:
- main # Adjust this if your main branch has a different name
# pull_request: # No need for PRs for now
# branches:
# - main # Adjust this if your main branch has a different name
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required for Chromatic to retrieve git history
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Adjust this to your project's Node.js version
- name: Install dependencies
run: npm ci # Use 'yarn install --frozen-lockfile' if you use Yarn
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# Optional: Add any additional Chromatic CLI flags here
# For example: --exit-zero-on-changes