1+ on :
2+ push :
3+ branches :
4+ - ve-pipeline-changes
5+ # - main
6+
7+ permissions :
8+ contents : write
9+ pull-requests : write
10+
11+ name : Create-Release
12+
13+ jobs :
14+ create-release :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+ with :
20+ ref : ${{ github.event.workflow_run.head_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+ - run : echo ${{ steps.semantic.outputs.release-version }}
62+
63+ - run : echo "$OUTPUTS"
64+ env :
65+ OUTPUTS : ${{ toJson(steps.semantic.outputs) }}
66+
0 commit comments