Skip to content

Commit 0097cf6

Browse files
authored
Hotfix/setting : 워크플로우 수정 (#37)
* Chore: 워크플로우 수정 * Fix: 린트오류 제거 * Chore: 워크플로우 수정
1 parent e767e46 commit 0097cf6

File tree

4 files changed

+40
-82
lines changed

4 files changed

+40
-82
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,49 @@ on:
1010
- develop
1111
- feat/*
1212
- hotfix/*
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
1316
jobs:
17+
storybook:
18+
permissions: write-all
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 5
21+
outputs:
22+
status: ${{ job.status }}
23+
steps:
24+
- name: checkout repository
25+
uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
29+
- name: cache dependencies
30+
id: cache
31+
uses: actions/cache@v3
32+
with:
33+
path: '**/node_modules'
34+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-storybook
35+
36+
- name: depedency install
37+
if: steps.cache.outputs.cache-hit != 'true'
38+
run: npm ci
39+
40+
- name: publish to chromatic
41+
id: chromatic
42+
uses: chromaui/action@v1
43+
with:
44+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
45+
token: ${{ secrets.GITHUB_TOKEN }}
46+
- name: comment PR
47+
uses: thollander/actions-comment-pull-request@v1
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
with:
51+
message: '🚀storybook: ${{ steps.chromatic.outputs.storybookUrl }}'
1452
build:
1553
name: Build
1654
runs-on: ubuntu-latest
55+
timeout-minutes: 5
1756
steps:
1857
- name: Checkout
1958
uses: actions/checkout@v3

src/app/page.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import CustomButton from '@/components/input/CustomButton';
2-
31
export default function Home() {
4-
return (
5-
<div className="container">
6-
CREW CREW
7-
<CustomButton label="CustomButton" />
8-
</div>
9-
);
2+
return <div className="container">CREW CREW</div>;
103
}

src/components/input/CustomButton.stories.ts

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

src/components/input/CustomButton.tsx

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

0 commit comments

Comments
 (0)