Skip to content

Commit

Permalink
ci: tag and release on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Uninen committed Jul 17, 2023
1 parent bb8a9a4 commit 27e43e0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,39 @@ jobs:
pnpm build
- uses: JS-DevTools/npm-publish@v2
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Create Tag
if: ${{ steps.publish.outputs.type }}
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
package-path: ./package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: steps.create_tag.outputs.successful
with:
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (Uninen|renovate-bot|renovate\\[bot\\]|Mend Renovate)
show-emoji: false

- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"

- name: Create Release
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
body: |
${{ steps.changelog.outputs.changelog }}
Compare changes: ${{ steps.changelog.outputs.compareurl }}
Read more from the Changelog: https:/slipmatio/ui/blob/main/CHANGES.md

0 comments on commit 27e43e0

Please sign in to comment.