This repository was archived by the owner on Jul 3, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3939 run : |
4040 # Run semantic-release with dry-run to detect version
41- NEXT_VERSION=$(npx semantic-release --dry-run --verify-conditions false | tee /dev/stderr | awk '/The next release version is/{print $NF}')
41+ set -o pipefail
42+ if ! OUTPUT=$(npx semantic-release --dry-run --verify-conditions false --verify-release false 2>&1); then
43+ echo "$OUTPUT"
44+ echo "::error::semantic-release failed during version detection"
45+ exit 1
46+ fi
47+ echo "$OUTPUT"
48+ NEXT_VERSION=$(echo "$OUTPUT" | awk '/The next release version is/{print $NF}')
4249 echo "next=$NEXT_VERSION" >> $GITHUB_OUTPUT
4350
4451 - name : Update package.json
4956
5057 - name : Update CHANGELOG.md
5158 if : steps.version.outputs.next != ''
52- run : npx conventional-changelog-cli -p conventionalcommits -i CHANGELOG.md -s
59+ run : npm run update-changelog
5360
5461 - name : Create Pull Request
5562 if : steps.version.outputs.next != ''
Original file line number Diff line number Diff line change 1414 "test" : " ./node_modules/.bin/_mocha -R spec --colors" ,
1515 "cover" : " ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec --colors" ,
1616 "open_cover" : " open coverage/lcov-report/*.html" ,
17- "prepare" : " husky"
17+ "prepare" : " husky" ,
18+ "update-changelog" : " conventional-changelog -p conventionalcommits -i CHANGELOG.md"
1819 },
1920 "repository" : {
2021 "type" : " git" ,
4243 "@commitlint/cli" : " ^20.3.1" ,
4344 "@commitlint/config-conventional" : " ^20.3.1" ,
4445 "@semantic-release/exec" : " ^7.0.3" ,
46+ "conventional-changelog" : " ^7.2.1" ,
4547 "body-parser" : " ^1.15.2" ,
4648 "chai" : " ^4.2.0" ,
4749 "cheerio" : " ~0.10.7" ,
You can’t perform that action at this time.
0 commit comments