Skip to content

Cascade layers

Cascade layers #995

Workflow file for this run

on: [push, pull_request]
jobs:
deployment:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get changed files
id: storybook-files
uses: tj-actions/changed-files@v45
with:
files: packages/components/src/components/**
- name: Run step if any file(s) in the docs folder change
if: steps.storybook-files.outputs.any_changed == 'true'
run: |
echo "One or more files has changed."
echo "List all the files that have changed: ${{ steps.storybook-files.outputs.all_changed_files }}"
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 20
packageManager: pnpm
- uses: the-guild-org/shared-config/website-cf@main
if: steps.storybook-files.outputs.any_changed == 'true'
name: build and deploy storybook
with:
cloudflareApiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflareAccountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: the-guild-docs-storybook
prId: ${{ github.event.pull_request.number }}
mainBranch: main
websiteDirectory: ./
buildScript: pnpm build-storybook
artifactDir: storybook-static
commentId: storybook-deployment
commentTitle: 📚 Storybook Deployment