provide readme & fetch-depth for git history

This commit is contained in:
Ulf Gebhardt 2023-11-22 09:21:43 +01:00
parent 85d7be9531
commit 5db38df327
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 16 additions and 0 deletions

View File

@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Frontend | Build
run: npm install && npm run chromatic -- --exit-zero-on-changes

View File

@ -68,6 +68,20 @@ Docker can be run in production mode:
docker compose -f docker-compose.yml up
```
### Chromatic
In order to use the chromatic workflow you need to provide a `CHROMATIC_PROJECT_TOKEN` in the repository secrets.
If you want to run chromatic from the command line you either have to provide this variable as well
```
export CHROMATIC_PROJECT_TOKEN=...
npm run chromatic
```
or you have to append it via parameter:
```
npm run chromatic -- --project-token=...
```
## Endpoints
The following endpoints are provided given the right command is executed or all three if `docker compose` is used: