Skip to content

Commit

Permalink
NONE) chore: chore preview yml (#12)
Browse files Browse the repository at this point in the history
* chore: chore preview yml

* chore: fix build command

* chore: modify preview trigger

* chore: remove fetch-depth

---------

Co-authored-by: dev-redo <mis05041@naver.com>
  • Loading branch information
dev-redo and dev-redo authored Mar 14, 2024
1 parent 79343e3 commit 53bf73a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/storybook-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,36 @@ name: Storybook Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_STORYBOOK_PROJECT_ID }}
CACHE_PATH: /home/ubuntu/.cache/cds

on:
workflow_dispatch:

jobs:
storybook-preview:
runs-on: [self-hosted, cds]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: 18.x

- uses: pnpm/action-setup@v2.2.1
with:
version: 8

- uses: actions/cache@v3
id: pnpm-cache
with:
path: node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile

- name: Build Storybook
run: pnpm run build-storybook

- name: Install Vercel CLI
run: npm install --global vercel@latest

Expand Down

0 comments on commit 53bf73a

Please sign in to comment.