Skip to content

Commit

Permalink
[cli] Add Storybook publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Takagi committed Mar 3, 2024
1 parent cbb0637 commit b364392
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy docs

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout

uses: actions/checkout@v3

- name: Setup Node.js

uses: actions/setup-node@v3

with:
node-version: 16

- run: npm ci

- run: npm run build

- name: Deploy storybook

working-directory: ./packages/docs

run: npm run deploy-storybook -- --ci --existing-output-dir=storybook-static

env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@storybook/addon-links": "^6.5.12",
"@storybook/builder-vite": "^0.2.3",
"@storybook/react": "^6.5.12",
"@storybook/storybook-deployer": "^2.8.12",
"@storybook/storybook-deployer": "^2.8.16",
"@storybook/testing-library": "^0.0.13",
"@vitejs/plugin-react": "^2.1.0",
"babel-loader": "^8.2.5",
Expand Down

0 comments on commit b364392

Please sign in to comment.