From 3946d7702ee5cde5124a73d0edf0ca99fce151da Mon Sep 17 00:00:00 2001 From: Egor Didenko Date: Tue, 6 Aug 2024 12:08:14 -0400 Subject: [PATCH] feat(ci): added options for publish --- .github/workflows/release-manual.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index ad4a8e5..29fa339 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -1,6 +1,17 @@ name: "Release and Publish Manual" -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + environment: + description: 'Choose the versions to publish' + required: true + default: 'minor' + type: choice + options: + - patch + - minor + - major jobs: build: @@ -33,7 +44,7 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - npx lerna version --conventional-commits --yes + npx lerna version ${{ github.event.inputs.environment }} --conventional-commits --yes npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN npx lerna publish from-git --yes \ No newline at end of file