Skip to content

13.0.0

13.0.0 #112

name: Deploy Storybook
on:
workflow_dispatch:
push:
tags:
- v*
- '!v*-beta.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🏷️
uses: actions/checkout@v4
- name: Set up Node 🕹️
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm ⚙️
uses: pnpm/action-setup@v3
with:
version: 9.x
- name: Restore cache 📌
uses: actions/cache@v4
with:
path: |
~/setup-pnpm/node_modules/.bin/store
~/.cache/Cypress
key: cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install dependencies ⚙️
run: pnpm install
- name: Build Storybook 🛠️
run: pnpm build:storybook
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'apps/storybook/build'
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Deploy Storybook 🚀
id: deployment
uses: actions/deploy-pages@v4
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}