Skip to content

fix: indentation of cleanup-preview job #5

fix: indentation of cleanup-preview job

fix: indentation of cleanup-preview job #5

Workflow file for this run

name: Deploy Storybook Production
on:
push:
branches:
- main
- develop
paths:
- client/**
defaults:
run:
working-directory: ./client
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
cache-dependency-path: "./client/pnpm-lock.yaml"
- name: Install dependencies
run: pnpm install
- name: Build storybook
run: pnpm run build-storybook
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/storybook-static

Check failure on line 48 in .github/workflows/storybook-ci-cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/storybook-ci-cd.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
destination_dir: ${{ github.ref == 'refs/heads/main' && 'storybook' || 'storybook-develop' }}