2727 description : Continue existing prerelease (if available)
2828 default : false
2929
30- specific_version :
31- type : string
32- description : Specify exact version (e.g., 3.3.0-alpha.1) - overrides other version settings
33- required : false
34-
3530 is_dry_run :
3631 type : boolean
3732 description : Dry Run
5247 token : ${{ steps.generate-token.outputs.token }}
5348 fetch-depth : 0
5449
55- - name : debug git tags
56- run : |
57- echo "All tags:"
58- git tag -l
59- echo "---"
60- echo "Tags sorted by version:"
61- git tag -l --sort=-v:refname
62- echo "---"
63- echo "Alpha tags sorted by version:"
64- git tag -l "*-alpha*" --sort=-v:refname
65- echo "---"
66- echo "Tag details:"
67- git for-each-ref --format="%(refname:short) %(objecttype) %(taggerdate)" refs/tags/
68- echo "---"
69- echo "Latest tag details:"
70- LATEST_TAG=$(git describe --tags --abbrev=0)
71- echo "Latest tag: $LATEST_TAG"
72- git show $LATEST_TAG
73-
7450 - name : initialize mandatory git config
7551 run : |
7652 git config user.name "GitHub Release Bot"
@@ -81,15 +57,11 @@ jobs:
8157
8258 - name : run release-it
8359 run : |
84- params=() # Determine prerelease logic
85- if [[ -n "${{ github.event.inputs.specific_version }}" ]]; then
86- params+=(--release=${{ github.event.inputs.specific_version }})
60+ params=()
8761 # Determine prerelease logic
88- elif [[ "${{ github.event.inputs.release_type }}" == "stable" ]]; then
62+ if [[ "${{ github.event.inputs.release_type }}" == "stable" ]]; then
8963 params+=(--${{ github.event.inputs.version_bump }})
9064 elif [[ "${{ github.event.inputs.continue_prerelease }}" == "true" ]]; then
91- # Add verbose logging to understand release-it's process
92- params+=(--verbose)
9365 # Tell release-it to use prerelease tags
9466 params+=(--preReleaseId=${{ github.event.inputs.release_type }})
9567 params+=(--increment=prerelease)
0 commit comments