Skip to content

Commit

Permalink
ci(repo): wrap long lines in commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jwulf committed Apr 7, 2024
1 parent ded83cf commit 66d501a
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .releaserc

This file was deleted.

64 changes: 64 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// eslint-disable-next-line no-undef
module.exports = {
branches: [
'main',
{
name: 'alpha',
prerelease: true,
},
],
repositoryUrl: 'https://github.com/camunda/camunda-8-js-sdk.git',
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{
type: 'feat',
release: 'patch',
},
{
type: 'fix',
release: 'patch',
},
{
type: 'release',
release: 'patch',
},
{
type: 'minor',
release: 'minor',
},
],
},
],
[
'@semantic-release/release-notes-generator',
{
writerOpts: {
transform: (commit, context) => {
let body = commit.body || ''

// Wrap long lines
body = body.replace(/(.{1,100})/g, '$1\n')

commit.body = body

return commit
},
},
},
],
'@semantic-release/changelog',
['@semantic-release/npm', {}],
[
'@semantic-release/git',
{
assets: ['package.json'],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
'@semantic-release/git',
],
}

0 comments on commit 66d501a

Please sign in to comment.