Bump storybook from 7.6.8 to 7.6.12 #457
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Website | |
# Controls when the workflow will run | |
on: | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Let workflow be reusable | |
workflow_call: | |
inputs: | |
upload-artifact: | |
description: 'Upload artifact to be used by other workflows' | |
required: true | |
default: false | |
type: boolean | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v4 | |
# Setup PNPM | |
- name: 🟨 Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
# Configure Node and caching | |
- name: 🟩 Setup Node.js and caching | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
# Install dependencies | |
- name: 📦 Install | |
run: pnpm install | |
- name: 🔨 Build | |
run: pnpm build | |
# Upload artifact if requested | |
- name: ⬆️ Upload artifact | |
if: ${{ inputs.upload-artifact }} | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'dist' |