File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 49
49
git add dist/index.js
50
50
git commit -m "Publish dist" || echo "Nothing to commit"
51
51
git push origin main
52
- git tag --force v1
53
- git push origin v1 --force
54
52
- name : Bump version and push tag
55
53
uses :
anothrNick/[email protected]
56
54
id : version
68
66
release_name : Release ${{ steps.version.outputs.new_tag }}
69
67
draft : false
70
68
prerelease : false
69
+ - name : Major version tag
70
+ id : tag-version
71
+ if : ${{ steps.version.outputs.new_tag }} != ""
72
+
73
+ with :
74
+ script : |
75
+ core.setOutput('tag', steps.version.outputs.new_tag.split('.')[1])
76
+ - name : Tag ${{ steps.major-version.outputs.tag }}
77
+ if : ${{ steps.version.outputs.new_tag }} != ""
78
+ run : |
79
+ git tag --force ${{ steps.major-version.outputs.tag }}
80
+ git push origin ${{ steps.major-version.outputs.tag }} --force
You can’t perform that action at this time.
0 commit comments