Skip to content

Commit 7c27031

Browse files
committed
chore: temporarily allow testing on feature branch
1 parent 4aab24b commit 7c27031

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- fix/staging-config
7+
- feature/final-workflow-setup
88
workflow_dispatch:
99

1010
permissions:
@@ -33,7 +33,7 @@ jobs:
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'

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"branches": ["master","fix/staging-config"],
2+
"branches": ["master","feature/final-workflow-setup"],
33
"plugins": [
44
[
55
"@semantic-release/commit-analyzer",

0 commit comments

Comments
 (0)