Skip to content

Commit

Permalink
Publish storybook workflow (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyRoyt authored and shaharzil committed Feb 12, 2024
1 parent f263776 commit 66a6143
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/monday-ui-style/.github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Storybook

on:
workflow_run:
workflows: ["Node.js Package"]
types:
- completed
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Build & deploy Storybook to GitHub Pages
run: |
npm ci
npm run build-storybook -- -o static_storybook
cd static_storybook
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Push to Storybook's branch
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: "gh-pages"
build_dir: static_storybook
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 66a6143

Please sign in to comment.