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@v4
18+ with :
19+ ref : ${{ github.event.workflow_run.head_sha }}
20+
21+ - uses : codfish/semantic-release-action@v3
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.TOKEN }}
60+ - run : echo ${{ steps.semantic.outputs.release-version }}
61+
62+ - run : echo "$OUTPUTS"
63+ env :
64+ OUTPUTS : ${{ toJson(steps.semantic.outputs) }}
65+
0 commit comments