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