Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init : 프로젝트 세팅 완료 #3

Merged
merged 24 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2a66c01
env : 의존성 설치
HelloWook Nov 15, 2024
825cdfd
env : storybook 설정
HelloWook Nov 15, 2024
2f5cc98
env : tailwind 설치
HelloWook Nov 15, 2024
f4fac86
env : tailwind 설정
HelloWook Nov 15, 2024
b6a846d
env : axios react-query zustand ts-pattern 설치
HelloWook Nov 15, 2024
f10d77d
env : 절대 경로 설정
HelloWook Nov 15, 2024
9c53ebb
env : 이슈,pr 템플릿 생성
HelloWook Nov 15, 2024
8fb46b0
ci : storybook cicd 적용
HelloWook Nov 15, 2024
f7a3ef1
ci storybook 테스트
HelloWook Nov 15, 2024
23013bb
ci : 스토리북 cicd 테스트
HelloWook Nov 15, 2024
76bf176
ci : 스토리북 cicd 적용
HelloWook Nov 15, 2024
1df4425
ci : ci 테스트 설정
HelloWook Nov 15, 2024
0cb557a
env : eslint, prettier 적용
HelloWook Nov 15, 2024
e56bfd8
env : pwa 생성
HelloWook Nov 17, 2024
e4d6b68
chore : pwa 설정 변경
HelloWook Nov 17, 2024
23a1306
chore : lint, foramt 적용
HelloWook Nov 17, 2024
50e4108
ci : 배포 cicd 적용
HelloWook Nov 17, 2024
bb48d85
ci : pnp 방식을 적용하도록 설정
HelloWook Nov 17, 2024
4d7f127
ci : 브랜치 변경
HelloWook Nov 17, 2024
ed30015
Merge pull request #2 from prgrms-web-devcourse-final-project/init-프로…
HelloWook Nov 17, 2024
eca0064
Merge branch 'main' into develope
HelloWook Nov 17, 2024
25d7feb
ci : ci 코멘트 테스트
HelloWook Nov 18, 2024
bcfce48
Merge branch 'develope' of https://github.com/prgrms-web-devcourse-fi…
HelloWook Nov 18, 2024
7437df5
ci : ci 코멘트 테스트
HelloWook Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 🚀개요

# 📝작업 내용

- [ ]
- [ ]

## 🔍백엔드 전달 사항

# 🎸기타 (연관 이슈)
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 🚀요약

# 📸사진 (구현 캡처)

# 📝작업 내용

- [ ]
- [ ]

## 🔍백엔드 전달 사항

# 🎸기타 (연관 이슈)

close #이슈번호
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: postamn

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.18.0'

- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: ./.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install

- name: Build project
run: |
yarn build

- name: Deploy to S3
uses: jakejarvis/[email protected]
with:
args: --delete
env:
AWS_S3_BUCKET: devfinal
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-northeast-2
SOURCE_DIR: dist

- name: Invalidate CloudFront Cache
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} \
--paths "/*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-northeast-2
40 changes: 40 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Workflow name
name: 'Chromatic Deployment'

on:
pull_request:
branches: main
paths:
- '**.stories.tsx'
push:
branches: main
paths:
- '**.stories.tsx'

jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: actions/checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dependencies
run: yarn install --immutable --check-cache

- name: Publish to Chromatic
id: publish_chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: build-storybook
onlyChanged: true

- name: comment PR
uses: thollander/actions-comment-pull-request@v1
if: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: '🚀 **storybook**: ${{ steps.publish_chromatic.outputs.storybookUrl }}'
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files


.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Zero-Install을 사용

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
*storybook.log
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn lint
yarn format
Loading
Loading