Skip to content

Commit

Permalink
feat: update yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Juyeong-Byeon committed Jun 11, 2024
1 parent 4d9559c commit 84f94a6
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 52 deletions.
File renamed without changes.
89 changes: 89 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
branches:
- main
- name: stage
prerelease: "rc"
channel: "next"
preset: "conventionalcommits"
tagFormat: "v${version}"
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- "@semantic-release/exec"
- "@semantic-release/git"
- "@semantic-release/github"

verifyConditions:
- "@semantic-release/git"
- "@semantic-release/github"

analyzeCommits:
- path: "@semantic-release/commit-analyzer"
releaseRules:
- type: refactor
release: patch
- type: build
release: patch
- type: ci
release: patch
- type: hotfix
release: patch
- type: perf
release: patch
- type: docs
scope: README
release: patch

generateNotes:
- path: "@semantic-release/release-notes-generator"
writerOpts:
groupBy: "type"
commitGroupsSort:
- "feat"
- "perf"
- "fix"
- "hotfix"
commitsSort: "header"
presetConfig:
types:
- type: "feat"
section: "Features"
# Tracked bug fix with a hotfix branch
- type: "hotfix"
section: "Bug Fixes"
# Uninmportant fix (CI testing, etc)
- type: "fix"
section: "Bug Fixes"
- type: perf
section: Performance
- type: refactor
section: Refactoring
- type: build
section: Build
- type: ci
section: CI

prepare:
- path: "@semantic-release/exec"
prepareCmd: |
sed -i "s/\(\"version.*: \"\).*/\1${nextRelease.version}\",/g" package.json
- path: "@semantic-release/changelog"
changelogFile: "docs/CHANGELOG.md"
- path: "@semantic-release/git"
assets:
- "docs/CHANGELOG.md"
- "package.json"
- "package-lock.json"
- "npm-shrinkwrap.json"
message: "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
- path: "@semantic-release/exec"
prepareCmd: |
echo "prepared"
publish:
- path: "@semantic-release/github"
success:
- path: "@semantic-release/github"
fail:
- path: "@semantic-release/github"
52 changes: 0 additions & 52 deletions .releaserc.yml

This file was deleted.

0 comments on commit 84f94a6

Please sign in to comment.