From 82dbe2cb19e9cfdea6c32309d9969a41639d85ea Mon Sep 17 00:00:00 2001 From: dev-minsoo Date: Fri, 17 Apr 2026 18:38:50 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=A6=B4=EB=A6=AC=EC=A6=88=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=ED=99=94=EC=99=80=20=EB=B0=B0=EC=A7=80=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/CODEOWNERS | 1 + .github/workflows/ci.yml | 31 ++++++++++++++++++++++++ .github/workflows/release.yml | 44 +++++++++++++++++++++++++++++++++++ README.ko.md | 1 + README.md | 1 + release.config.mjs | 9 +++++++ 6 files changed, 87 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/release.yml create mode 100644 release.config.mjs diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..edf3c59 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @dev-minsoo diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8315020 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + +jobs: + lint-and-build: + name: Lint and Build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run lint + run: npm run lint + + - name: Run build + run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..484205b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: Release + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + release: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write + issues: write + pull-requests: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run lint + run: npm run lint + + - name: Run build + run: npm run build + + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx -p semantic-release@25 -p @semantic-release/commit-analyzer@13 -p @semantic-release/release-notes-generator@14 -p @semantic-release/github@12 semantic-release diff --git a/README.ko.md b/README.ko.md index a90f978..e0d86a8 100644 --- a/README.ko.md +++ b/README.ko.md @@ -4,6 +4,7 @@

license + release

diff --git a/README.md b/README.md index 51605d8..8e90ebd 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@

license + release

diff --git a/release.config.mjs b/release.config.mjs new file mode 100644 index 0000000..16bcbe9 --- /dev/null +++ b/release.config.mjs @@ -0,0 +1,9 @@ +export default { + branches: ["main"], + tagFormat: "v${version}", + plugins: [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github", + ], +};