Skip to content

Commit

Permalink
Merge pull request #15 from bh2980/14-semantic-release적용
Browse files Browse the repository at this point in the history
14 semantic release적용
  • Loading branch information
bh2980 authored Jun 7, 2024
2 parents 0ef95b7 + 66d3306 commit 63321f2
Show file tree
Hide file tree
Showing 5 changed files with 2,498 additions and 42 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'

- run: yarn install --frozen-lockfile
- run: yarn install
- uses: nrwl/nx-set-shas@v4

# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Semantic-Release

on:
push:
branches: ['manster']

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Node.js Env
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Running Semantic-Release
run: npx semantic-release
64 changes: 64 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"branches": ["master"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "scope": "no-release", "release": false },
{ "scope": "breaking", "release": "major" },

{ "type": "docs", "scope": "README", "release": "patch" },

{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },

{ "type": "refactor", "release": "minor" },

{ "type": "style", "release": "patch" },
{ "type": "perf", "release": "patch" },

{ "type": "chore", "release": false },
{ "type": "ci", "release": false },
{ "type": "test", "release": false }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}
],
[
"@semantic-release/release-notes-generator",
{
"presetConfig": {
"types": [
{ "type": "feat", "section": "✨ Features", "hidden": false },
{ "type": "fix", "section": "🐛 Bug Fixes", "hidden": false },
{ "type": "perf", "section": "🌈 Performance", "hidden": false },
{ "type": "refactor", "section": "♻️ Refactor", "hidden": false },
{ "type": "docs", "section": "📝 Docs", "hidden": false },
{ "type": "style", "section": "💄 Styles", "hidden": false },
{ "type": "ci", "section": "💫 CI/CD", "hidden": false },

{ "type": "test", "section": "✅ Tests", "hidden": true },
{ "type": "chore", "section": "📦 Chores", "hidden": true }
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# 🚦 CHANGELOG | 변경 사항을 기록해요."
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md"]
}
]
],
"preset": "conventionalcommits"
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"@nx/web": "19.1.2",
"@nx/workspace": "19.1.2",
"@playwright/test": "^1.36.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@swc-node/register": "~1.9.1",
"@swc/cli": "~0.3.12",
"@swc/core": "~1.5.7",
Expand All @@ -48,6 +50,7 @@
"@vitest/ui": "^1.3.1",
"autoprefixer": "10.4.13",
"babel-jest": "^29.4.1",
"conventional-changelog-conventionalcommits": "^8.0.0",
"eslint": "~8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "2.27.5",
Expand All @@ -62,6 +65,7 @@
"postcss": "8.4.21",
"prettier": "^2.6.2",
"redux-devtools": "^3.7.0",
"semantic-release": "^24.0.0",
"tailwindcss": "3.4.3",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
Expand Down
Loading

0 comments on commit 63321f2

Please sign in to comment.