Skip to content

Commit

Permalink
added publishing of storybooks to chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Oct 16, 2024
1 parent 130261c commit fbfb883
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/platform-publish-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Workflow name
name: 'Platform Publish Storybook'

# Event for the workflow
on: push

# List of jobs
jobs:
test:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- run: yarn
#👇 Adds Chromatic as a step in the workflow
- uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
#👇 Chromatic projectToken,
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions autogpt_platform/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-modal": "^3.16.3",
"chromatic": "^11.12.5",
"concurrently": "^9.0.1",
"eslint": "^8",
"eslint-config-next": "14.2.4",
Expand Down
5 changes: 5 additions & 0 deletions autogpt_platform/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4926,6 +4926,11 @@ chokidar@^3.5.3:
optionalDependencies:
fsevents "~2.3.2"

chromatic@^11.12.5:
version "11.12.5"
resolved "https://registry.npmjs.org/chromatic/-/chromatic-11.12.5.tgz"
integrity sha512-5z+BXQy3TMyXIzCdCDO9Psc8aMs9kIrCFHhMgYbwA6dTXxAL0oUjHZbICn5h4Ay/fM9cZQPaCH9T7a3myPA8Sw==

chrome-trace-event@^1.0.2:
version "1.0.4"
resolved "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz"
Expand Down

0 comments on commit fbfb883

Please sign in to comment.