File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7- - fix/staging-config
7+ - feature/final-workflow-setup
88 workflow_dispatch :
99
1010permissions :
3333 node-version : ' 20'
3434
3535 - name : Install dependencies
36- run : npm install -g semantic-release @semantic-release/exec @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits
36+ run : npm install -g semantic-release @semantic-release/exec @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits conventional-changelog-cli
3737
3838 - name : Configure Git
3939 run : |
@@ -109,8 +109,18 @@ jobs:
109109 - name : Generate Changelog
110110 if : steps.get_version.outputs.should_create_pr == 'true' && steps.check_branch.outputs.branch_exists == 'false'
111111 run : |
112- npx semantic-release --no-ci 2>&1 | tee release-output.txt || true
113- cat release-output.txt
112+ VERSION="${{ steps.get_version.outputs.next_version }}"
113+ echo "Generating changelog for version $VERSION..."
114+
115+ # Create a temporary context file to force the correct version header
116+ echo '{"version":"'${VERSION}'"}' > context.json
117+
118+ # Generate changelog updates and save to file without tagging
119+ npx conventional-changelog-cli -p conventionalcommits -i CHANGELOG.md -s --context context.json
120+
121+ rm context.json
122+ echo "CHANGELOG.md updated successfully."
123+
114124
115125 - name : Commit changes
116126 if : steps.get_version.outputs.should_create_pr == 'true' && steps.check_branch.outputs.branch_exists == 'false'
Original file line number Diff line number Diff line change 11{
2- "branches" : [" master" ," fix/staging-config " ],
2+ "branches" : [" master" ," feature/final-workflow-setup " ],
33 "plugins" : [
44 [
55 " @semantic-release/commit-analyzer" ,
You can’t perform that action at this time.
0 commit comments