Skip to content

Commit

Permalink
ci(semrel): update semrel config with own flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
gliech committed Sep 13, 2020
1 parent daa0103 commit 695fbb4
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 4 deletions.
125 changes: 122 additions & 3 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,126 @@
---
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- - "@semantic-release/commit-analyzer"
- preset: conventionalcommits
releaseRules:
- type: feat
release: minor
- type: feature
release: minor
- type: fix
release: patch
- type: perf
release: patch
- type: revert
release: patch
- type: docs
release: false
- type: style
release: false
- type: chore
release: false
- type: refactor
release: patch
- type: test
release: false
- type: build
release: false
- type: ci
release: false
- type: deps
release: patch
- type: amend
release: patch
- - "@semantic-release/release-notes-generator"
- preset: conventionalcommits
writerOpts:
mainTemplate: |
{{> header}}
{{#each commitGroups}}
{{#if title}}
### {{title}}
{{/if}}
{{#each commits}}
{{> commit root=@root}}
{{/each}}
{{/each}}
{{> footer}}
headerPartial: |
{{#if isPatch~}}
##
{{~else~}}
#
{{~/if}} {{#if @root.linkCompare~}}
[{{version}}](
{{~#if @root.repository~}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if~}}
/compare/{{previousTag}}...{{currentTag}})
{{~else}}
{{~version}}
{{~/if~}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}
footerPartial: |
{{#if noteGroups}}
{{#each noteGroups}}
### {{title}}
{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}
{{/if}}
presetConfig:
types:
- type: feat
section: Features
- type: feature
section: Features
- type: fix
section: Bug Fixes
- type: perf
section: Performance Improvements
- type: revert
section: Reverts
- type: docs
section: Documentation
- type: style
section: Styles
- type: chore
section: Miscellaneous Chores
hidden: true
- type: refactor
section: Code Refactoring
- type: test
section: Tests
- type: build
section: Build System
- type: ci
section: Continuous Integration
- type: deps
section: Dependency Updates
- type: amend
section: Feature Amendments
hidden: true
- - "@semantic-release/changelog"
- changelogFile: CHANGELOG.md
- - "@google/semantic-release-replace-plugin"
- replacements:
- files:
Expand All @@ -22,6 +140,7 @@ plugins:
countMatches: true
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
- dist/index.js
- package.json
- package-lock.json
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@vercel/ncc": "^0.23.0",
"semantic-release": "^17.1.1"
"semantic-release": "^17.1.1",
"conventional-changelog-conventionalcommits": "^4.0.0"
},
"dependencies": {
"@actions/core": "^1.2.4",
Expand Down

0 comments on commit 695fbb4

Please sign in to comment.