Skip to content

Commit

Permalink
[chore] add stage to push git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
glassk committed May 13, 2024
1 parent 1e2dcb0 commit cec12f6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
id: package_version
run: echo "::set-output name=version::$(grep '\"version\"' package.json | cut -d '\"' -f 4)"

- name: Push Git Tag
run: |
TAG="v${{ steps.package_version.outputs.version }}"
git tag $TAG
git push origin $TAG
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
Expand All @@ -29,8 +35,8 @@ jobs:
- name: Create/update release
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.changelog_reader.outputs.version }}
name: v${{ steps.changelog_reader.outputs.version }}
tag: v${{ steps.package_version.outputs.version }}
name: v${{ steps.package_version.outputs.version }}
body: ${{ steps.changelog_reader.outputs.changes }}
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cec12f6

Please sign in to comment.