Skip to content

Permissions?

Permissions? #4

name: Deploy Storybook
on:
push:
branches: [main]
permissions:
id-token: write
jobs:
deploy-storybook:
name: Deploy Storybook
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outcome.page_url }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
shell: bash
run: npm ci --ignore-scripts
- name: Build storybook
run: npm run storybook:build --workspace=@utima/ui
- name: Upload storybook artifacts
uses: actions/upload-artifact@v4
with:
name: storybook-static
path: ./packages/ui/storybook-static
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: storybook-static