From a1482245f946576da47ebc57a7a624d9a4a8128a Mon Sep 17 00:00:00 2001 From: Prathmesh Bidve <127070138+prathmesh0125@users.noreply.github.com> Date: Fri, 30 Aug 2024 21:08:50 +0530 Subject: [PATCH] Add GitHub Actions workflow for automatic versioning and changelog generation (#156) --- .github/workflows/realease-and-changelog.yml | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/realease-and-changelog.yml 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 }}