-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.releaserc.yml
52 lines (46 loc) · 1.95 KB
/
.releaserc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# spec: https://semantic-release.gitbook.io/semantic-release/usage/configuration
branches: ['main']
plugins:
# Determine the type of release by analyzing commits.
# ie: Major, Minor or Patch
- - "@semantic-release/commit-analyzer"
- preset: conventionalcommits
releaseRules:
- { breaking: true, release: major }
- { revert: true, release: patch }
- { type: feat, release: minor }
- { type: fix, release: patch }
- { type: perf, release: patch }
- { type: docs, release: patch }
- { type: refactor, release: patch }
- { type: style, release: patch }
- { type: build, release: patch }
- { type: ci, release: patch }
- { type: test, release: patch }
- { type: update, release: patch }
# Generate CHANGELOG.md
- - "@semantic-release/release-notes-generator"
- preset: conventionalcommits
presetConfig:
# spec: https://github.com/conventional-changelog/conventional-changelog-config-spec/tree/master/versions/2.1.0
types:
- { type: feat, section: "Features" }
- { type: fix, section: "Bug Fixes" }
- { type: chore, section: "Misc" }
- { type: docs, section: "Misc" }
- { type: style, section: "Improvements" }
- { type: refactor, section: "Improvements" }
- { type: perf, section: "Improvements" }
- { type: test, section: "Automation" }
- { type: ci, section: "Automation" }
- { type: build, section: "Automation" }
- { type: update, section: "Automation" }
- "@semantic-release/changelog"
# Commit CHANGELOG.md back to repo
- - "@semantic-release/git"
- assets: ["CHANGELOG.md", "lib/**", "src/**"]
message: "chore(release): update changelog ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
# Create new github release
- "@semantic-release/github"
# Create new npm release
- "@semantic-release/npm"