-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π fix: enable romantic-release-bot <3
- Loading branch information
Showing
3 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|
@@ -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]', | ||
}, | ||
], | ||
], | ||
|