Skip to content

Commit bc59604

Browse files
authored
Merge pull request #2 from NaverPayDev/repo/1
changeset actions 를 추가합니다
2 parents 6498187 + df0d86f commit bc59604

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+166209
-4
lines changed

.commithelperrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"protect": ["main"],
3+
"rules": {
4+
"feature": null,
5+
"feat": null,
6+
"epic": null
7+
}
8+
}

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*.{js,ts,tsx}]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
max_line_length = 120
10+
trim_trailing_whitespace = true
11+
12+
[*.{json,yml,yaml}]
13+
charset = utf-8
14+
end_of_line = lf
15+
indent_style = space
16+
indent_size = 4
17+
insert_final_newline = true
18+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
pnpm-lock.yaml
39+
40+
# Optional npm cache directory
41+
.npm
42+
43+
# Optional eslint cache
44+
.eslintcache
45+
46+
# Optional REPL history
47+
.node_repl_history
48+
49+
# Output of 'npm pack'
50+
*.tgz
51+
52+
# Yarn Integrity file
53+
.yarn-integrity
54+
55+
# dotenv environment variables file
56+
.env
57+
58+
# next.js build output
59+
.next
60+
61+
dist
62+
63+
apps/docs/docs
64+
65+
.changeset/*

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@naverpay/eslint-config"
3+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @NaverPayDev/frontend
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: 개발 이슈 생성
3+
about: 개발 이슈를 생성합니다.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### 작업 내용
11+
12+
-

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### 이슈 <!-- #뒤에 이슈번호 작성 -->
2+
3+
- NaverPayDev/changeset-actions#
4+
5+
### 작업 유형
6+
7+
- [ ] 버그 수정
8+
- [ ] 기능 추가
9+
- [ ] 코드 개선
10+
11+
### 작업 내용 <!-- PR의 주요 작업 내용 작성 -->
12+
13+
-
14+
-
15+
-
16+
17+
### PR 포인트 <!-- 리뷰어 분들이 집중적으로 보셨으면 하는 내용 (참고할 내용) -->
18+
19+
-
20+
-
21+
-
22+
23+
### 기타 <!-- 기타 적고싶은 내용(TODO, 참고링크 등) 기재. 없으면 생략 -->
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: add-action-build-result
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
9+
jobs:
10+
build-and-add-result:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
ref: ${{ github.head_ref }}
16+
- name: Enable Corepack
17+
run: corepack enable
18+
- run: |
19+
pnpm install && pnpm run build
20+
git add .
21+
if ! git diff-index --quiet HEAD; then
22+
git config --global user.name 'npayfebot'
23+
git config --global user.email '[email protected]'
24+
git commit -m "✨ add action build result"
25+
git push origin ${{ github.head_ref }}
26+
else
27+
echo "Action 빌드 결과물에 변경점이 없습니다."
28+
fi
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: auto assign pull request to author
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
8+
jobs:
9+
auto_assign_pull_request_to_author:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: NaverPayDev/actions/pr/auto-assign-pull-request-to-author-action@main
13+
with:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- '**'
6+
7+
jobs:
8+
PrettierAndLint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v3
13+
with:
14+
version: 8
15+
run_install: true
16+
- run: pnpm run prettier
17+
- run: pnpm run lint
18+
- run: pnpm run markdownlint
19+
20+
Test:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: pnpm/action-setup@v3
25+
with:
26+
version: 8
27+
run_install: true
28+
- run: pnpm run test

0 commit comments

Comments
 (0)