1- on :
2- push :
3- branches :
4- - main
5-
6- permissions :
7- contents : write
8- pull-requests : write
9-
10- name : Create-Release
11-
12- jobs :
13- create-release :
14- runs-on : ubuntu-latest
15- steps :
16- - name : Checkout
17- uses : actions/checkout@v6
18- with :
19- ref : ${{ github.event.workflow_run.head_sha }}
20-
21- - uses : codfish/semantic-release-action@v4
22- id : semantic
23- with :
24- tag-format : ' v${version}'
25- additional-packages : |
26- ['conventional-changelog-conventionalcommits@7']
27- plugins : |
28- [
29- [
30- "@semantic-release/commit-analyzer",
31- {
32- "preset": "conventionalcommits"
33- }
34- ],
35- [
36- "@semantic-release/release-notes-generator",
37- {
38- "preset": "conventionalcommits",
39- "presetConfig": {
40- "types": [
41- { type: 'feat', section: 'Features', hidden: false },
42- { type: 'fix', section: 'Bug Fixes', hidden: false },
43- { type: 'perf', section: 'Performance Improvements', hidden: false },
44- { type: 'revert', section: 'Reverts', hidden: false },
45- { type: 'docs', section: 'Other Updates', hidden: false },
46- { type: 'style', section: 'Other Updates', hidden: false },
47- { type: 'chore', section: 'Other Updates', hidden: false },
48- { type: 'refactor', section: 'Other Updates', hidden: false },
49- { type: 'test', section: 'Other Updates', hidden: false },
50- { type: 'build', section: 'Other Updates', hidden: false },
51- { type: 'ci', section: 'Other Updates', hidden: false }
52- ]
53- }
54- }
55- ],
56- '@semantic-release/github'
57- ]
58- env :
59- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60- - run : echo ${{ steps.semantic.outputs.release-version }}
61-
62- - run : echo "$OUTPUTS"
63- env :
64- OUTPUTS : ${{ toJson(steps.semantic.outputs) }}
1+ name : " Create Release"
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : write
11+ pull-requests : write
12+
13+ jobs :
14+ create-release :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+ with :
20+ ref : ${{ github.sha }}
21+
22+ - uses : codfish/semantic-release-action@v3
23+ id : semantic
24+ with :
25+ tag-format : ' v${version}'
26+ additional-packages : |
27+ ['conventional-changelog-conventionalcommits@7']
28+ plugins : |
29+ [
30+ [
31+ "@semantic-release/commit-analyzer",
32+ {
33+ "preset": "conventionalcommits"
34+ }
35+ ],
36+ [
37+ "@semantic-release/release-notes-generator",
38+ {
39+ "preset": "conventionalcommits",
40+ "presetConfig": {
41+ "types": [
42+ { type: 'feat', section: 'Features', hidden: false },
43+ { type: 'fix', section: 'Bug Fixes', hidden: false },
44+ { type: 'perf', section: 'Performance Improvements', hidden: false },
45+ { type: 'revert', section: 'Reverts', hidden: false },
46+ { type: 'docs', section: 'Other Updates', hidden: false },
47+ { type: 'style', section: 'Other Updates', hidden: false },
48+ { type: 'chore', section: 'Other Updates', hidden: false },
49+ { type: 'refactor', section: 'Other Updates', hidden: false },
50+ { type: 'test', section: 'Other Updates', hidden: false },
51+ { type: 'build', section: 'Other Updates', hidden: false },
52+ { type: 'ci', section: 'Other Updates', hidden: false }
53+ ]
54+ }
55+ }
56+ ],
57+ '@semantic-release/github'
58+ ]
59+ env :
60+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61+
62+ - run : echo ${{ steps.semantic.outputs.release-version }}
63+
64+ - run : echo "$OUTPUTS"
65+ env :
66+ OUTPUTS : ${{ toJson(steps.semantic.outputs) }}
0 commit comments