Skip to content

Commit

Permalink
fix: release with also generate major version
Browse files Browse the repository at this point in the history
  • Loading branch information
adeherysh committed Jul 30, 2024
1 parent f4ff2cc commit ed2b442
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:
release-type: simple
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}

- name: Setup jq
if: steps.release.outputs.release_created == 'true'
run: sudo apt-get install -y jq

- name: Create major tag
if: steps.release.outputs.release_created == 'true'
run: |
LATEST_VERSION=$(jq -r '.tag_name' < "${{ steps.release.outputs.release_notes_path }}")
MAJOR_VERSION=$(echo $LATEST_VERSION | cut -d. -f1)
git tag -f v$MAJOR_VERSION
git push origin --tags
git push origin v$MAJOR_VERSION

0 comments on commit ed2b442

Please sign in to comment.