We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffb309f + 0cffff4 commit 066a59bCopy full SHA for 066a59b
2 files changed
.github/workflows/release.yml
@@ -28,6 +28,7 @@ jobs:
28
- name: Run Tests
29
run: npm test --if-present
30
- name: Release
31
+ id: semantic
32
uses: cycjimmy/semantic-release-action@v6
33
with:
34
semantic_version: 24
@@ -43,3 +44,11 @@ jobs:
43
44
GIT_COMMITTER_NAME: github-actions
45
GIT_COMMITTER_EMAIL: github-actions@github.com
46
CI: true
47
+ - name: Update major version tag
48
+ if: steps.semantic.outputs.new_release_published == 'true'
49
+ run: |
50
+ MAJOR="v${{ steps.semantic.outputs.new_release_major_version }}"
51
+ TAG="v${{ steps.semantic.outputs.new_release_version }}"
52
+ echo "Updating $MAJOR tag to point to $TAG"
53
+ git tag -f "$MAJOR" "$TAG"
54
+ git push -f origin "$MAJOR"
.github/workflows/update-major-tag.yml
0 commit comments