Skip to content

feat(platform): Agent Store V2 #4

feat(platform): Agent Store V2

feat(platform): Agent Store V2 #4

# Workflow name
name: 'AutoGPT Platform - Frontend Publish Storybook'
# Event for the workflow
on:
push:
branches: [master]
paths:
- ".github/workflows/platform-publish-storybook.yml"
- "autogpt_platform/frontend/**"
pull_request:
paths:
- ".github/workflows/platform-publish-storybook.yml"
- "autogpt_platform/frontend/**"
defaults:
run:
shell: bash
working-directory: autogpt_platform/frontend
# List of jobs
jobs:
publish-storybook:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "21"
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build Storybook
run: yarn build-storybook
#👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
#👇 Chromatic projectToken
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
storybookBuildDir: storybook-static