This repository has been archived on 2026-07-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aniwatch-api/.github/workflows/release.yml
T
2025-05-12 01:17:23 +05:30

39 lines
1.1 KiB
YAML

name: "Create Release"
on:
push:
branches: ["main"]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkouts repo
uses: actions/checkout@v4
- run: chmod +x ./scripts/format-package-json && ls -al
- name: Debug format-package-json script
run: |
cat ./scripts/format-package-json && ls -al ./scripts/format-package-json
- name: Conventional changelog action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
skip-on-empty: false
git-user-name: "github-actions[bot]"
git-user-email: "github-actions[bot]@users.noreply.github.com"
pre-commit: ./scripts/format-package-json
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
if: ${{ steps.changelog.outputs.skipped == 'false' }}
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
token: ${{ secrets.CHANGELOG_SECRET }}
tag: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}