Skip to content

chore(deps): bump actions/setup-go from 5.4.0 to 5.5.0 (#6120) #1

chore(deps): bump actions/setup-go from 5.4.0 to 5.5.0 (#6120)

chore(deps): bump actions/setup-go from 5.4.0 to 5.5.0 (#6120) #1

name: Deploy Storybook
on:
push:
branches:
- 'main'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Deploy Scalar Components Storybook
runs-on: ubuntu-22.04
timeout-minutes: 15
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install netlify
run: pnpm install -g netlify
- name: Generate Run UUID
run: echo "DEPLOY_ID=$(uuidgen)" >> "$GITHUB_ENV" && echo $DEPLOY_ID
- name: Install dependencies
run: pnpm --filter components... install
- name: Build components and dependencies
run: pnpm --filter components... build
- name: Build storybook
run: pnpm --filter components build:storybook
env:
DEPLOY_ID: ${{ env.DEPLOY_ID }}
- name: Deploy Storybook to Netlify (Production)
run: |
netlify deploy --dir "./packages/components/storybook-static" \
--message "Deployed from GitHub (${{ env.DEPLOY_ID }})" \
--site ${{ vars.NETLIFY_SITE_ID_COMPONENTS }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
--filter @scalar/components --prod