Merge branch 'XS-30' of github.com:kirtesh-xola/ui-kit into XS-30 #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish UI Kit Storybook | |
on: | |
push: | |
branches: | |
- "**" # matches every branch | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
cache-dependency-path: "package-lock.json" | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate storybook | |
run: npm run build:storybook | |
- name: Publish generated content to GitHub Pages | |
uses: tsunematsu21/[email protected] | |
with: | |
dir: storybook-static | |
branch: gh-pages | |
token: ${{ secrets.STORYBOOK_PUBLISH_TOKEN }} |