-
-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (96 loc) · 3.34 KB
/
release-please.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# 发行源码 | Release the source code
name: release-please
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
# Create release
# REF https://github.com/marketplace/actions/release-please-action
- name: Create release
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: release-please-action
## A GitHub secret token, the action defaults to using the special secrets.GITHUB_TOKEN
## REF https://github.com/marketplace/actions/release-please-action#github-credentials
token: ${{ secrets.PAT_ACTIONS }}
## branch to open pull release PR against (detected by default)
default-branch: main
## Should breaking changes before 1.0.0 produce minor bumps? Default false
bump-minor-pre-major: false
## Should feat changes before 1.0.0 produce patch bumps instead of minor bumps? Default false
bump-patch-for-minor-pre-major: false
## If set, create releases that are pre-major or pre-release version marked as pre-release on GitHub. Defaults false
prerelease: true
## header used within the release PR body, defaults to using :robot: I have created a release *beep* *boop*
pull-request-header: ":robot: A new release will be created"
## A JSON formatted String containing to override the outputted changelog sections
changelog-types: |-
[
{
"type": "build",
"section": "Build System",
"hidden": false
},
{
"type": "chore",
"section": "Miscellaneous",
"hidden": false
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": false
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "feat",
"section": "Features",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes",
"hidden": false
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": false
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "style",
"section": "Styles",
"hidden": false
},
{
"type": "test",
"section": "Tests",
"hidden": false
},
{
"type": "",
"section": "Other Changes",
"hidden": false
}
]