Skip to content

Commit

Permalink
Add GitHub Actions workflow for automatic versioning and changelog ge…
Browse files Browse the repository at this point in the history
…neration (#156)
  • Loading branch information
prathmesh0125 authored Aug 30, 2024
1 parent 2ef577d commit a148224
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/realease-and-changelog.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit a148224

Please sign in to comment.