Skip to content

Commit 697bb0d

Browse files
authored
Merge pull request #43 from uploadcare/feat/ci-add-options
feat(ci): added options for publish
2 parents 40a240e + 3946d77 commit 697bb0d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/release-manual.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: "Release and Publish Manual"
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: 'Choose the versions to publish'
8+
required: true
9+
default: 'minor'
10+
type: choice
11+
options:
12+
- patch
13+
- minor
14+
- major
415

516
jobs:
617
build:
@@ -33,7 +44,7 @@ jobs:
3344
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3445
git config --global user.name "github-actions[bot]"
3546
36-
npx lerna version --conventional-commits --yes
47+
npx lerna version ${{ github.event.inputs.environment }} --conventional-commits --yes
3748
3849
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
3950
npx lerna publish from-git --yes

0 commit comments

Comments
 (0)