prepare version 6.0
This commit is contained in:
parent
6f05ce192f
commit
917867a4e1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "github-tag-action",
|
||||
"version": "5.6.0",
|
||||
"version": "6.0.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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' },
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue