diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8076383..87c600b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,7 +6,7 @@ env: on: push: - branches: ["main"] + branches: ['main'] permissions: contents: read @@ -26,3 +26,20 @@ jobs: run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} + Deploy-Storybook: + runs-on: ubuntu-latest + steps: + - name: Checkout code + - uses: actions/checkout@v4 + - with: + fetch-depth: 0 + + - name: Install dependencies + - run: npm ci + + - name: Publish to Chromatic + - uses: chromaui/action@latest + with: + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} + onlyChanged: true