diff --git a/.github/workflows/realease-and-changelog.yml b/.github/workflows/realease-and-changelog.yml new file mode 100644 index 0000000..c8e824f --- /dev/null +++ b/.github/workflows/realease-and-changelog.yml @@ -0,0 +1,32 @@ +name: Releases and Changelog +on: + push: + branches: + - main + +jobs: + changelog: + runs-on: ubuntu-latest + + permissions: + actions: write + contents: write + + steps: + - uses: actions/checkout@v4 + + - name: Conventional Changelog Action + id: changelog + uses: TriPSs/conventional-changelog-action@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + version-file: './package.json,./package-lock.json' + + - name: Create Release + if: steps.changelog.outputs.skipped == 'false' + uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.changelog.outputs.tag }} + name: ${{ steps.changelog.outputs.tag }} + body: ${{ steps.changelog.outputs.clean_changelog }}