Skip to content

chore_and_add_storybook_page #1

chore_and_add_storybook_page

chore_and_add_storybook_page #1

Workflow file for this run

name: demo
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run storybook:build
- name: upload storybook
uses: actions/upload-pages-artifact@v1
with:
path: ./storybook-static
deploy:
needs: upload
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1