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 8f530f6 commit 523c6b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Release please
id: release
uses: googleapis/release-please-action@v4
with:
release-type: simple
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}

- 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

0 comments on commit 523c6b5

Please sign in to comment.