Skip to content

Commit 9e33579

Browse files
committed
feat: github actions ci/cd 구축
1 parent 7d20ff5 commit 9e33579

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Package to npmjs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
npm-publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🔔
11+
uses: actions/checkout@v3
12+
- name: Node Setup 🔔
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: Install & Build 🔨
18+
run: |
19+
yarn
20+
yarn build
21+
- name: Publish 🚀
22+
run: yarn publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
storybook-publish:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout 🔔
29+
uses: actions/checkout@v3
30+
- name: Install & Build 🔨
31+
run: |
32+
yarn
33+
yarn build:storybook
34+
- name: Deploy 🚀
35+
uses: JamesIves/github-pages-deploy-action@v4
36+
with:
37+
token: ${{ secrets.PUBLISH_TOKEN }}
38+
folder: storybook-static

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-thumbnail-generator",
3-
"version": "2.7.1",
3+
"version": "2.8.0",
44
"description": "react-thumbnail-generator",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

src/components/TG.styled.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const TGBodyWrapper = styled.section<{
2929
display: flex;
3030
justify-content: center;
3131
min-width: ${({ isFullWidth }) => (isFullWidth ? '100%' : '600px')};
32-
min-height: 100vh;
3332
border-radius: 7px;
3433
box-shadow: 1px 1px 10px #cccccc;
3534
z-index: 9999;

0 commit comments

Comments
 (0)