Skip to content

Commit 1d8b58d

Browse files
committed
feat(.github/actions): add pre-release support to create-release-pr actions
1 parent 4ba94e9 commit 1d8b58d

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/actions/create-release-pr-for-gem/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ inputs:
1616
tag-prefix:
1717
description: The tag prefix
1818
default: "v"
19+
pre-release:
20+
description: Whether the release is a pre-release
21+
default: false
1922

2023
runs:
2124
using: "composite"
@@ -28,7 +31,7 @@ runs:
2831
token: ${{ env.GITHUB_TOKEN }}
2932
- name: Conventional Changelog Action
3033
id: changelog
31-
uses: TriPSs/conventional-changelog-action@v5
34+
uses: TriPSs/conventional-changelog-action@v6
3235
with:
3336
preset: conventionalcommits
3437
skip-version-file: true
@@ -39,6 +42,7 @@ runs:
3942
skip-tag: true
4043
tag-prefix: ${{ inputs.tag-prefix }}
4144
github-token: ${{ env.GITHUB_TOKEN }}
45+
pre-release: ${{ inputs.pre-release }}
4246
- name: Commit version up commit
4347
if: ${{ steps.changelog.outputs.skipped == 'false' }}
4448
env:

.github/actions/create-release-pr-for-npm/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ inputs:
1616
tag-prefix:
1717
description: The tag prefix
1818
default: "v"
19+
pre-release:
20+
description: Whether the release is a pre-release
21+
default: false
1922

2023
runs:
2124
using: "composite"
@@ -28,7 +31,7 @@ runs:
2831
token: ${{ env.GITHUB_TOKEN }}
2932
- name: Conventional Changelog Action
3033
id: changelog
31-
uses: TriPSs/conventional-changelog-action@v5
34+
uses: TriPSs/conventional-changelog-action@v6
3235
with:
3336
preset: conventionalcommits
3437
skip-version-file: true
@@ -39,6 +42,7 @@ runs:
3942
skip-tag: true
4043
tag-prefix: ${{ inputs.tag-prefix }}
4144
github-token: ${{ env.GITHUB_TOKEN }}
45+
pre-release: ${{ inputs.pre-release }}
4246
- name: Commit version up commit
4347
if: ${{ steps.changelog.outputs.skipped == 'false' }}
4448
env:

0 commit comments

Comments
 (0)