mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
21 lines
543 B
YAML
21 lines
543 B
YAML
name: "frontend:deploy:chromatic"
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build-and-deploy:
|
|
name: Chromatic - Frontend
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
|
WORKING_DIRECTORY: ./frontend
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Frontend | Build
|
|
run: npm install && npm run chromatic -- --exit-zero-on-changes
|
|
working-directory: ${{env.WORKING_DIRECTORY}} |