This directory contains GitHub Actions workflows for automated deployments.
The chromatic.yml workflow automatically deploys Storybook to Chromatic when code is pushed to the main branch or when a pull request is created.
For Chromatic deployment to work, the following secret needs to be set in your GitHub repository:
CHROMATIC_PROJECT_TOKEN: Your Chromatic project token
The vercel-deploy.yml workflow automatically deploys the application to Vercel after running tests. It creates preview deployments for pull requests and production deployments for pushes to the main branch.
For Vercel deployment to work, the following secrets need to be set in your GitHub repository:
VERCEL_TOKEN: Your Vercel API tokenVERCEL_ORG_ID: Your Vercel organization IDVERCEL_PROJECT_ID: Your Vercel project ID
- Create the secrets in your GitHub repository settings.
- For Vercel, make sure your project is set up in the Vercel dashboard.
- For Chromatic, create a project and obtain your project token.