mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 09:02:11 +03:00
a975935f49
* Connect profile picture upload to backend * Fix tests * Revert onboarding state changes
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: 'CI Chromatic'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request_target:
|
|
jobs:
|
|
chromatic-deployment:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
REACT_APP_API_URL: http://127.0.0.1:3000/graphql
|
|
REACT_APP_AUTH_URL: http://127.0.0.1:3000/auth
|
|
REACT_APP_FILES_URL: http://127.0.0.1:3000/files
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
if: github.event_name == 'push'
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ github.head_ref || github.ref_name }}
|
|
- uses: actions/checkout@v3
|
|
if: github.event_name == 'pull_request_target'
|
|
with:
|
|
fetch-depth: 0
|
|
ref: "refs/pull/${{ github.event.number }}/merge"
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "18"
|
|
- name: Front / Write .env
|
|
run: |
|
|
cd front
|
|
touch .env
|
|
echo "REACT_APP_API_URL: $REACT_APP_API_URL" >> .env
|
|
echo "REACT_APP_AUTH_URL: $REACT_APP_AUTH_URL" >> .env
|
|
echo "REACT_APP_FILES_URL: $REACT_APP_FILES_URL" >> .env
|
|
- name: Front / Install Dependencies
|
|
run: cd front && yarn
|
|
- name: Publish to Chromatic
|
|
uses: chromaui/action@v1
|
|
with:
|
|
workingDir: ./front
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
|
onlyChanged: true
|
|
buildScriptName: storybook:build
|
|
|