From b8dad4753bc05e10bea5df2faf079181abe6effc Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 13 May 2024 12:23:20 +0800 Subject: [PATCH] ci(release-it): update release-it workflow to allow choosing increment type --- .github/workflows/release-it.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-it.yml b/.github/workflows/release-it.yml index e2a84d81..619a9b5c 100644 --- a/.github/workflows/release-it.yml +++ b/.github/workflows/release-it.yml @@ -6,6 +6,15 @@ permissions: on: workflow_dispatch: + inputs: + increment: + required: true + default: patch + type: choice + options: + - major + - minor + - patch jobs: release: @@ -34,7 +43,7 @@ jobs: - args: [--frozen-lockfile] - name: Release - run: npx release-it --verbose + run: npx release-it ${{ inputs.increment }} env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }}