File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,39 +279,13 @@ jobs:
279279 python -m pip install --upgrade pip
280280 pip install python-semantic-release
281281
282- - name : Semantic Release (dry-run)
283- env :
284- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
285- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
286- run : |
287- git config --global user.name "github-actions[bot]"
288- git config --global user.email "github-actions[bot]@users.noreply.github.com"
289- semantic-release --noop publish
290-
291- - name : Check for existing tags
292- id : check-tags
293- run : |
294- if git describe --tags --abbrev=0 2>/dev/null; then
295- echo "has_tags=true" >> $GITHUB_OUTPUT
296- else
297- echo "has_tags=false" >> $GITHUB_OUTPUT
298- fi
299-
300- - name : Create initial tag if none exists
301- if : steps.check-tags.outputs.has_tags == 'false'
302- run : |
303- git config --global user.name "github-actions[bot]"
304- git config --global user.email "github-actions[bot]@users.noreply.github.com"
305- git tag v1.1.0
306- git push origin v1.1.0
307-
308282 - name : Semantic Release
309283 env :
310284 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
311285 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
312286 run : |
313287 git config --global user.name "github-actions[bot]"
314288 git config --global user.email "github-actions[bot]@users.noreply.github.com"
315- semantic-release publish
289+ semantic-release publish --verbosity=DEBUG
316290
317291# Finish
Original file line number Diff line number Diff line change @@ -93,10 +93,3 @@ major_on_zero = false
9393tag_format = " v{version}"
9494commit_parser = " angular"
9595
96- [tool .semantic_release .branches .main ]
97- match = " main"
98- prerelease = false
99-
100- [tool .semantic_release .changelog .default_templates ]
101- changelog_file = " CHANGELOG.md"
102-
You can’t perform that action at this time.
0 commit comments