Skip to content

Release

Release #29

Workflow file for this run

---
name: Release
on:
pull_request:
branches: [main]
types:
- closed
workflow_dispatch:
jobs:
release:
name: Release
runs-on: [ubuntu-latest]
permissions:
contents: write
issues: write
pull-requests: write
packages: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.CHANGELOG_TOKEN }}
git-message: 'chore(release): {version}'
tag-prefix: 'v'
skip-git-pull: "true"
skip-on-empty: "true"
output-file: "CHANGELOG.md"
version-file: ./package.json
preset: 'angular'
release-count: 0
- name: Create Release
uses: softprops/action-gh-release@v2
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
token: ${{ secrets.CHANGELOG_TOKEN }}
tag_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.changelog }}
files: |
./CHANGELOG.md