1- name : Semantic Versioning
1+ name : Create Release Tag
22
33on :
44 push :
@@ -9,40 +9,18 @@ permissions:
99 contents : write
1010
1111jobs :
12- bump-version :
12+ tag :
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
1616 with :
1717 fetch-depth : 0
18- token : ${{ secrets.GITHUB_TOKEN }}
1918
20- - name : Determine next version (dry run)
21- id : tag
19+ - name : Bump version and create tag
2220 uses :
mathieudutour/[email protected] 2321 with :
2422 github_token : ${{ secrets.GITHUB_TOKEN }}
25- dry_run : true
2623 default_bump : patch
27- # Conventional Commits mapping:
28- # fix: -> patch, feat: -> minor, BREAKING CHANGE -> major
2924 major_string_token : ' BREAKING CHANGE,!:'
3025 minor_string_token : ' feat:'
31- patch_string_token : ' fix:,perf:,refactor:'
32-
33- - name : Update package.json version
34- if : steps.tag.outputs.new_tag != steps.tag.outputs.previous_tag
35- run : |
36- cd meta_configurator
37- npm version ${{ steps.tag.outputs.new_version }} --no-git-tag-version
38-
39- - name : Commit version bump and create tag
40- if : steps.tag.outputs.new_tag != steps.tag.outputs.previous_tag
41- run : |
42- git config user.name "github-actions[bot]"
43- git config user.email "github-actions[bot]@users.noreply.github.com"
44- git add meta_configurator/package.json
45- git commit -m "chore: bump version to ${{ steps.tag.outputs.new_version }} [skip ci]"
46- git tag ${{ steps.tag.outputs.new_tag }}
47- git push
48- git push --tags
26+ patch_string_token : ' fix:,perf:,refactor:,docs:,chore:,test:'
0 commit comments