From 1d8b58df43fb29a1fde75c831cbb4855b315a805 Mon Sep 17 00:00:00 2001 From: hatajoe Date: Wed, 11 Jun 2025 18:49:15 +0900 Subject: [PATCH] feat(.github/actions): add pre-release support to create-release-pr actions --- .github/actions/create-release-pr-for-gem/action.yml | 6 +++++- .github/actions/create-release-pr-for-npm/action.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/actions/create-release-pr-for-gem/action.yml b/.github/actions/create-release-pr-for-gem/action.yml index 2766f8b..fe78e95 100644 --- a/.github/actions/create-release-pr-for-gem/action.yml +++ b/.github/actions/create-release-pr-for-gem/action.yml @@ -16,6 +16,9 @@ inputs: tag-prefix: description: The tag prefix default: "v" + pre-release: + description: Whether the release is a pre-release + default: false runs: using: "composite" @@ -28,7 +31,7 @@ runs: token: ${{ env.GITHUB_TOKEN }} - name: Conventional Changelog Action id: changelog - uses: TriPSs/conventional-changelog-action@v5 + uses: TriPSs/conventional-changelog-action@v6 with: preset: conventionalcommits skip-version-file: true @@ -39,6 +42,7 @@ runs: skip-tag: true tag-prefix: ${{ inputs.tag-prefix }} github-token: ${{ env.GITHUB_TOKEN }} + pre-release: ${{ inputs.pre-release }} - name: Commit version up commit if: ${{ steps.changelog.outputs.skipped == 'false' }} env: diff --git a/.github/actions/create-release-pr-for-npm/action.yml b/.github/actions/create-release-pr-for-npm/action.yml index 778f30c..20e726a 100644 --- a/.github/actions/create-release-pr-for-npm/action.yml +++ b/.github/actions/create-release-pr-for-npm/action.yml @@ -16,6 +16,9 @@ inputs: tag-prefix: description: The tag prefix default: "v" + pre-release: + description: Whether the release is a pre-release + default: false runs: using: "composite" @@ -28,7 +31,7 @@ runs: token: ${{ env.GITHUB_TOKEN }} - name: Conventional Changelog Action id: changelog - uses: TriPSs/conventional-changelog-action@v5 + uses: TriPSs/conventional-changelog-action@v6 with: preset: conventionalcommits skip-version-file: true @@ -39,6 +42,7 @@ runs: skip-tag: true tag-prefix: ${{ inputs.tag-prefix }} github-token: ${{ env.GITHUB_TOKEN }} + pre-release: ${{ inputs.pre-release }} - name: Commit version up commit if: ${{ steps.changelog.outputs.skipped == 'false' }} env: