Skip to content

Merge pull request #71 from KasperskyLab/feature/update-menu-example #55

Merge pull request #71 from KasperskyLab/feature/update-menu-example

Merge pull request #71 from KasperskyLab/feature/update-menu-example #55

name: "@kaspersky/components Storybook"
on:
push:
branches:
- "master"
paths:
- 'packages/kaspersky-components/**'
- '.github/workflows/kaspersky-components-storybook.yml'
workflow_dispatch:
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
defaults:
run:
working-directory: ./packages/kaspersky-components
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
shell: bash
run: |
npm ci
- name: Build Storybook
shell: bash
run: |
npm run build-storybook
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/kaspersky-components/storybook/components
destination_dir: components