-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.31 KB
/
auto_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Automatic Semantic Release
on:
# workflow_dispatch # manual-only for testing
push:
branches:
- main
jobs:
new-release:
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Checkout code
uses: actions/checkout@v4 # Checkout our working repository
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.GH_TOKEN }}
output-file: 'CHANGELOG.md'
version-file: 'package.json'
- name: Debug Changelog Outputs
run: |
echo "Skipped: ${{ steps.changelog.outputs.skipped }}"
echo "Tag: ${{ steps.changelog.outputs.tag }}"
echo "Clean Changelog: ${{ steps.changelog.outputs.clean_changelog }}"
echo "Outputs Skipped: ${{ steps.changelog.outputs.skipped }}"
- name: Create Release # This action will create the actual release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}