Skip to content

Commit

Permalink
πŸ› fix: enable romantic-release-bot <3
Browse files Browse the repository at this point in the history
  • Loading branch information
drackp2m committed Nov 4, 2024
1 parent 469df13 commit 6ab26ab
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ module.exports = {
},
{
value: 'revert',
name: 'revert: πŸ—‘οΈ Reverts a previous commit',
emoji: 'πŸ—‘ ',
name: 'revert: βͺ Reverts a previous commit',
emoji: 'βͺ',
},
],
},
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
run: |
echo "$GPG_PRIVATE_KEY" > private.key
gpg --batch --import private.key
git config --global user.name "drackp2m-semantic-release-bot"
git config --global user.email "[email protected]"
git config --global commit.gpgSign true
git config --global user.signingkey 89AE9225AE159D89
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
Expand All @@ -48,4 +46,8 @@ jobs:
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: 'drackp2m-semantic-release-bot'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_NAME: 'drackp2m-semantic-release-bot'
GIT_COMMITTER_EMAIL: '[email protected]'
run: node --run release
55 changes: 55 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,59 @@ module.exports = {
},
],
'@semantic-release/release-notes-generator',
// [
// '@semantic-release/release-notes-generator',
// {
// writerOpts: {
// commitsSort: ['subject', 'scope'],
// transform: (commit) => {
// const clonedCommit = { ...commit };

// clonedCommit.notes.forEach((note) => {
// note.title = 'BREAKING CHANGES';
// });

// if (clonedCommit.type === 'feat') {
// clonedCommit.type = '✨ Features';
// } else if (clonedCommit.type === 'style') {
// clonedCommit.type = '🎨 Styles';
// } else if (clonedCommit.type === 'test') {
// clonedCommit.type = 'πŸ§ͺ Tests';
// } else if (clonedCommit.type === 'refactor') {
// clonedCommit.type = '♻️ Code Refactoring';
// } else if (clonedCommit.type === 'fix') {
// clonedCommit.type = 'πŸ› Bug Fixes';
// } else if (clonedCommit.type === 'docs') {
// clonedCommit.type = 'πŸ“š Documentation';
// } else if (clonedCommit.type === 'perf') {
// clonedCommit.type = 'πŸš€ Performance Improvements';
// } else if (clonedCommit.type === 'build') {
// clonedCommit.type = 'πŸ—οΈβ€ Build System';
// } else if (clonedCommit.type === 'ci') {
// clonedCommit.type = 'πŸ’» Continuous Integration';
// } else if (clonedCommit.type === 'Chore') {
// clonedCommit.type = 'πŸŽ’ Continuous Integration';
// } else if (clonedCommit.type === 'revert') {
// clonedCommit.type = 'βͺ Reverts';
// }

// if (clonedCommit.scope === '*') {
// clonedCommit.scope = '';
// }

// if (typeof clonedCommit.hash === 'string') {
// clonedCommit.shortHash = clonedCommit.hash.substring(0, 7);
// }

// if (typeof clonedCommit.subject === 'string') {
// clonedCommit.subject = clonedCommit.subject.substring(0, 72);
// }

// return commit;
// },
// },
// },
// ],
'@semantic-release/changelog',
[
'@semantic-release/github',
Expand All @@ -35,6 +88,8 @@ module.exports = {
{
assets: ['package.json', 'CHANGELOG.md'],
message: 'πŸŽ’ chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
authorName: 'drackp2m-semantic-release-bot',
authorEmail: '[email protected]',
},
],
],
Expand Down

0 comments on commit 6ab26ab

Please sign in to comment.