Skip to content

feat: deploy storybook #1

feat: deploy storybook

feat: deploy storybook #1

name: Deploy Storybook
on:
pull_request:
types:
- closed
branches:
- main
jobs:
merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: |
yarn install --immutable
yarn lerna run build --stream --ignore next
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/ads/ads-react