prepare version 6.0

This commit is contained in:
Mathieu Dutour 2021-11-16 19:08:48 +01:00
parent 6f05ce192f
commit 917867a4e1
No known key found for this signature in database
GPG Key ID: C5DCA505019496D1
5 changed files with 18 additions and 20 deletions

View File

@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v5.6
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "github-tag-action",
"version": "5.6.0",
"version": "6.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

@ -1,6 +1,6 @@
{
"name": "github-tag-action",
"version": "5.6.0",
"version": "6.0.0",
"private": true,
"description": "A GitHub Action to automatically bump and tag master, on merge, with the latest SemVer formatted version.",
"main": "lib/main.js",

View File

@ -17,17 +17,16 @@ type ChangelogRule = {
* https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/writer-opts.js
* https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/writer-opts.js
*/
export const defaultChangelogRules: Readonly<
Record<string, ChangelogRule>
> = Object.freeze({
feat: { type: 'feat', section: 'Features' },
fix: { type: 'fix', section: 'Bug Fixes' },
perf: { type: 'perf', section: 'Performance Improvements' },
revert: { type: 'revert', section: 'Reverts' },
docs: { type: 'docs', section: 'Documentation' },
style: { type: 'style', section: 'Styles' },
refactor: { type: 'refactor', section: 'Code Refactoring' },
test: { type: 'test', section: 'Tests' },
build: { type: 'build', section: 'Build Systems' },
ci: { type: 'ci', section: 'Continuous Integration' },
});
export const defaultChangelogRules: Readonly<Record<string, ChangelogRule>> =
Object.freeze({
feat: { type: 'feat', section: 'Features' },
fix: { type: 'fix', section: 'Bug Fixes' },
perf: { type: 'perf', section: 'Performance Improvements' },
revert: { type: 'revert', section: 'Reverts' },
docs: { type: 'docs', section: 'Documentation' },
style: { type: 'style', section: 'Styles' },
refactor: { type: 'refactor', section: 'Code Refactoring' },
test: { type: 'test', section: 'Tests' },
build: { type: 'build', section: 'Build Systems' },
ci: { type: 'ci', section: 'Continuous Integration' },
});

View File

@ -114,9 +114,8 @@ export function mapCustomReleaseRules(customReleaseTypes: string) {
return true;
})
.map((customReleaseRule) => {
const [type, release, section] = customReleaseRule.split(
releaseTypeSeparator
);
const [type, release, section] =
customReleaseRule.split(releaseTypeSeparator);
const defaultRule = defaultChangelogRules[type.toLowerCase()];
return {