Restore CSS/SCSS bundling builds (#557) #27
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 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 |