1 |
rakin |
515 |
name: Releases |
2 |
|
|
on: |
3 |
|
|
push: |
4 |
|
|
branches: |
5 |
|
|
- main |
6 |
|
|
|
7 |
|
|
jobs: |
8 |
|
|
changelog: |
9 |
rakin |
516 |
if: github.repository_owner == 'onesoft-sudo' |
10 |
rakin |
515 |
runs-on: ubuntu-latest |
11 |
|
|
|
12 |
|
|
steps: |
13 |
rakin |
517 |
- uses: actions/checkout@v3 |
14 |
rakin |
515 |
|
15 |
|
|
- name: Conventional Changelog Action |
16 |
|
|
id: changelog |
17 |
rakin |
517 |
uses: TriPSs/[email protected] |
18 |
rakin |
515 |
with: |
19 |
|
|
github-token: ${{ secrets.CHANGELOG_RELEASE }} |
20 |
|
|
version-file: './package.json,./package-lock.json' |
21 |
|
|
|
22 |
|
|
- name: Create Release |
23 |
|
|
uses: actions/create-release@v1 |
24 |
|
|
if: ${{ steps.changelog.outputs.skipped == 'false' }} |
25 |
|
|
env: |
26 |
|
|
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }} |
27 |
|
|
with: |
28 |
|
|
tag_name: ${{ steps.changelog.outputs.tag }} |
29 |
|
|
release_name: ${{ steps.changelog.outputs.tag }} |
30 |
|
|
body: ${{ steps.changelog.outputs.clean_changelog }} |