Skip to content

Commit a9478eb

Browse files
committed
chore: chromatic에서 github pages로 변경
1 parent 7142dfb commit a9478eb

File tree

2 files changed

+48
-24
lines changed

2 files changed

+48
-24
lines changed

.github/workflows/chromatic.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/storybook.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Workflow name
2+
name: 🚀 Storybook 배포
3+
4+
on:
5+
push:
6+
branches:
7+
- 'main'
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: ✅ 코드 체크 아웃
20+
uses: actions/checkout@v3
21+
22+
- name: ✅ 노드 세팅
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: '20.x'
26+
27+
- name: 🔨 빌드
28+
run: |
29+
cd packages/design-system
30+
yarn build-storybook
31+
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v2.0.0
34+
with:
35+
path: storybook-static
36+
37+
deploy:
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.build-publish.outputs.page_url }}
41+
runs-on: ubuntu-latest
42+
needs: build
43+
steps:
44+
- name: 🚀 스토리북 배포
45+
id: deployment
46+
uses: actions/deploy-pages@v3
47+
with:
48+
token: ${{ github.token }}

0 commit comments

Comments
 (0)